[
https://issues.apache.org/jira/browse/CB-8662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14554000#comment-14554000
]
Morille Jerome commented on CB-8662:
------------------------------------
This is linked to the version of node.js
With cordova v 5.0.0 and with
- npm version 0.10.36, this working perfectly and it succes to manage hte
proxy.
- npm version 0.12.2 I have the bug
````javascript
npm http GET https://registry.npmjs.org/cordova-android/4.0.0
TypeError: Request path contains unescaped characters.
at new ClientRequest (_http_client.js:73:11)
at TunnelingAgent.exports.request (http.js:49:10)
at TunnelingAgent.createSocket
(/home/a000cqp/opt/node-v0.12.2-linux-x64/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:117:25)
at TunnelingAgent.createSecureSocket [as createSocket]
(/home/a000cqp/opt/node-v0.12.2-linux-x64/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:184:41)
at TunnelingAgent.addRequest
(/home/a000cqp/opt/node-v0.12.2-linux-x64/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:80:8)
at new ClientRequest (_http_client.js:154:16)
at Object.exports.request (http.js:49:10)
at Object.exports.request (https.js:136:15)
at Request.start
(/home/a000cqp/opt/node-v0.12.2-linux-x64/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:594:30)
at Request.end
(/home/a000cqp/opt/node-v0.12.2-linux-x64/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:1186:28)
````
> Latest release of Cordova breaks http via proxy
> -----------------------------------------------
>
> Key: CB-8662
> URL: https://issues.apache.org/jira/browse/CB-8662
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Environment: Windows
> Node.js 0.12.0
> npm 2.5.1
> Cordova 4.3.0
> Reporter: John Little
>
> I work behind a squid firewall and need the HTTP_PROXY settings in the npm
> config to work.
> After upgrading cordova to version 4.3.0 any package add's or upgrades using
> cordova would fail with the following error :-
> TypeError: Request path contains unescaped characters.
> After a bit of searching I found this thread which sounded like my problem :-
> https://github.com/npm/npm/issues/4569
> I followed the instructions and downloaded the latest tunnel-agent and copied
> the files over the ones in my nodejs install directory.
> It seems that the new cordova package provides an updated request module
> which is not compatible with the tunnel-agent.
> After this manual upgrade every thing works ok.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]