cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gareth King (JIRA)" <>
Subject [jira] [Commented] (CB-8662) Latest release of Cordova breaks http via proxy
Date Mon, 20 Apr 2015 11:33:58 GMT


Gareth King commented on CB-8662:

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.

running cordova platform add android -d
No version supplied. Retrieving version from config.xml...
npm http GET
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)

> Latest release of Cordova breaks http via proxy
> -----------------------------------------------
>                 Key: CB-8662
>                 URL:
>             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
> 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 :-
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message