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

Uncaught exception. #110

Closed
colin-han opened this issue Aug 26, 2014 · 3 comments
Closed

Uncaught exception. #110

colin-han opened this issue Aug 26, 2014 · 3 comments

Comments

@colin-han
Copy link

I'm try to deploy a sinopia as local cache registry of npm. But sometime, I got an uncaught exception when install a package through it. Following is the exception details:

 fatal --- uncaught exception, please report this
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:689:11)
    at ServerResponse.res.setHeader (C:\Users\colinhan\AppData\Roaming\npm\node_modules\sinopia\node_modules\express\node_modules\connect\lib\patch.js:133:22)
    at ServerResponse.res.set.res.header (C:\Users\colinhan\AppData\Roaming\npm\node_modules\sinopia\node_modules\express\lib\response.js:578:10)
    at ReadTarball.<anonymous> (C:\Users\colinhan\AppData\Roaming\npm\node_modules\sinopia\lib\index.js:165:8)
    at ReadTarball.emit (events.js:95:17)
    at ReadTarball.<anonymous> (C:\Users\colinhan\AppData\Roaming\npm\node_modules\sinopia\lib\storage.js:265:12)
    at ReadTarball.emit (events.js:95:17)
    at Request.<anonymous> (C:\Users\colinhan\AppData\Roaming\npm\node_modules\sinopia\lib\up-storage.js:315:11)
    at Request.emit (events.js:117:20)
    at Request.onResponse (C:\Users\colinhan\AppData\Roaming\npm\node_modules\sinopia\node_modules\request\request.js:986:10)

following is my envariment:
OS: Win8.1 x64,
Node: 0.10.31
NPM: 1.4.23
sinopia: 0.9.1

@ciaranj
Copy link

ciaranj commented Aug 28, 2014

Manually applying the fixes in #67 fixes this (for me.)

@colinhangc
Copy link

Thanks ciaranj. it is working for me.

@rlidwka
Copy link
Owner

rlidwka commented Nov 1, 2014

fixed in sinopia@0.13.2, see #67 (comment) for details

@rlidwka rlidwka closed this as completed Nov 1, 2014
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