Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: need better error when download URL is broken/endless redirect #81

Open
iotashan opened this issue Nov 15, 2014 · 3 comments
Open

Comments

@iotashan
Copy link

Github was having issues this morning, and download URLs were endlessly redirecting to themselves. Here's the error I got:

MacBook-Pro:shan$ gittio install dk.napp.drawer
[INFO]  dk.napp.drawer searching...
[INFO]  dk.napp.drawer@1.1.7:ios downloading...
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Request.EventEmitter.addListener (events.js:160:15)
    at Request.start (/usr/local/lib/node_modules/gittio/node_modules/request/request.js:611:8)
    at Request.end (/usr/local/lib/node_modules/gittio/node_modules/request/request.js:1237:28)
    at /usr/local/lib/node_modules/gittio/node_modules/request/request.js:413:12
    at process._tickCallback (node.js:415:13)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Request.EventEmitter.addListener (events.js:160:15)
    at Request.init (/usr/local/lib/node_modules/gittio/node_modules/request/request.js:365:8)
    at Request.onResponse (/usr/local/lib/node_modules/gittio/node_modules/request/request.js:814:10)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1688:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1583:20)
    at CleartextStream.read [as _read] (tls.js:507:12)
    at CleartextStream.Readable.read (_stream_readable.js:320:10)

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: Exceeded maxRedirects. Probably stuck in a redirect loop https://github.com/viezel/NappDrawer/blob/c8246805060d9b1579862f836a1187b07d0c0eb4/ios/dist/dk.napp.drawer-iphone-1.1.7.zip?raw=true
    at Request.onResponse (/usr/local/lib/node_modules/gittio/node_modules/request/request.js:772:26)
    at ClientRequest.g (events.js:175:14)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1688:21)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)
    at CleartextStream.socketOnData [as ondata] (http.js:1583:20)
    at CleartextStream.read [as _read] (tls.js:507:12)
    at CleartextStream.Readable.read (_stream_readable.js:320:10)
    at EncryptedStream.write [as _write] (tls.js:366:25)
    at doWrite (_stream_writable.js:221:10)
@mmeester
Copy link

any luck on solving this? I have the same error, can't find a way to solve it...

@yuchi
Copy link
Contributor

yuchi commented Dec 29, 2014

Which version of gittio are you using?

No problems on my env, which is:

pier $ gittio --version
0.5.0

@FokkeZB
Copy link
Contributor

FokkeZB commented Dec 30, 2014

Clearly the request module should deal with this better. Still getting the error? I also got a report on GitHub's certificates not working: timanrebel/HockeyApp#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants