You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Simone Chiaretta (JIRA)" <ji...@apache.org> on 2013/07/30 11:03:49 UTC

[jira] [Created] (CB-4426) Create app doesn't work if computer cannot connect to github and raises exception instead of showing friendly error message

Simone Chiaretta created CB-4426:
------------------------------------

             Summary: Create app doesn't work if computer cannot connect to github and raises exception instead of showing friendly error message
                 Key: CB-4426
                 URL: https://issues.apache.org/jira/browse/CB-4426
             Project: Apache Cordova
          Issue Type: Bug
          Components: App Hello World, CLI
    Affects Versions: 3.0.0
            Reporter: Simone Chiaretta
            Assignee: Michael Brooks


i just installed phonegap 3.0 and tried to create a new app via the CLI: "phonegap create my-app"
But I get the following error:

[phonegap] downloading https://github.com/phonegap/phonegap-app-hello-world/archive/3.0.0.tar.gz...

TypeError: Cannot read property 'length' of undefined
    at Request.request.get.pipe.pipe.tar.Extract.path [as _callback] (C:\Documen
ts and Settings\CHIARSI\Application Data\npm\node_modules\phonegap\node_modules\cordova\src\lazy_load.js:70:78)
    at self.callback (C:\Documents and Settings\CHIARSI\Application Data\npm\node_modules\phonegap\node_modules\cordova\node_modules\request\index.js:148:22)
    at Request.EventEmitter.emit (events.js:117:20)
    at ClientRequest.self.clientErrorHandler (C:\Documents and Settings\CHIARSI\Application Data\npm\node_modules\phonegap\node_modules\cordova\node_modules\request\index.js:257:10)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at CleartextStream.socketErrorListener (http.js:1528:9)
    at CleartextStream.EventEmitter.emit (events.js:95:17)
    at Socket.onerror (tls.js:1424:17)
    at Socket.EventEmitter.emit (events.js:117:20)
    at net.js:441:14

I have the impression the phonegap command line utility doesn't read properly the proxy configuration of windows, and this is due to some mishandling of the error.
So, I posted this message, first to report this small bug, and second to ask how can I set proxy configuration for the phonegap utility.
Or if there is a workaround to this in case proxy cannot be set.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira