Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8611

Cannot add platform with node@0.12.0 inside authenticate proxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • OS: Ubuntu 14.04 LTS x64
      Cordova: 4.3.0

    Description

      Cannot add platform with node@0.12.0 inside authenticate proxy.

      $ echo $http_proxy
      http://user:pass@proxy.example.com:8080/
      $ echo $https_proxy
      http://user:pass@proxy.example.com:8080/
      $ nvm use v0.12.0
      $ npm install -g cordova@4.3.0
      $ rm -rf ~/.cordova
      $ cordova create project1
      $ cd project1
      $ cordova platform add browser
      npm http GET https://registry.npmjs.org/cordova-browser/3.6.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/masakura/.nvm/versions/node/v0.12.0/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/masakura/.nvm/versions/node/v0.12.0/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/masakura/.nvm/versions/node/v0.12.0/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/masakura/.nvm/versions/node/v0.12.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:594:30)
      at Request.end (/home/masakura/.nvm/versions/node/v0.12.0/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:1186:28)

      • node@0.10.36 is OK
      • cordova@4.2.0 and node@0.12.0 is OK
      • Same problem with OS X (Yosemite)
      • "cordova platform add android" is NG
      • "cordova plugin add org.apache.cordova.camera" is OK

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              tomo_masakura Tomo Masakura
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: