cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gareth King (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-8662) Latest release of Cordova breaks http via proxy
Date Mon, 20 Apr 2015 11:35:01 GMT

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


Mime
View raw message