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

Latest release of Cordova breaks http via proxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0, 4.3.0
    • None
    • cordova-cli
    • None
    • Windows
      Node.js 0.12.0
      npm 2.5.1
      Cordova 4.3.0
      Cordova 5.0.0

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jml John Little
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: