[jira] [Comment Edited] (CB-8662) Latest release of Cordova breaks http via proxy

2015-04-20 Thread Gareth King (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502662#comment-14502662
 ] 

Gareth King edited comment on CB-8662 at 4/20/15 11:34 AM:
---

I also experienced this problem behind a corporate firewall.
Upgrading tunnel_agent in 
/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/request/node_modules/tunnel-agent
 to version 0.4.1 solved the problem.

{code:title=Before updating tunnel-agent}
running cordova platform add android -d
...
No version supplied. Retrieving version from config.xml...
npm http GET https://registry.npmjs.org/cordova-android/3.7.1
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 
(/usr/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] 
(/usr/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 
(/usr/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 
(/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:594:30)
at Request.end 
(/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:1186:28)
{code}


was (Author: sluglit):
I also experienced this problem behind a corporate firewall.
Upgrading tunnel_agent in 
/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/request/node_modules/tunnel-agent
 solved the problem.

{code}
running cordova platform add android -d
...
No version supplied. Retrieving version from config.xml...
npm http GET https://registry.npmjs.org/cordova-android/3.7.1
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 
(/usr/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] 
(/usr/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 
(/usr/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 
(/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:594:30)
at Request.end 
(/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:1186:28)
{code}

> 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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-8662) Latest release of Cordova breaks http via proxy

2015-05-21 Thread Morille Jerome (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14554000#comment-14554000
 ] 

Morille Jerome edited comment on CB-8662 at 5/21/15 9:53 AM:
-

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 the 
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)




was (Author: jmorille):
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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org