-
Notifications
You must be signed in to change notification settings - Fork 284
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
ECONNRESET on putFile #198
Comments
You're not doing anything with the response object. You should pipe it somewhere, or call |
Ahh thanks for the quick reply. I just saw the issue from a few days ago That is pretty annoying. Is there some way for knox to handle that for us instead and wrap that response (and maybe check the statusCode as well). A lot of new users won't be familiar with having to do something extra with res from a callback and will probably run in to the same exact issue that we had. |
Yeah, that's planned, #114, but nobody's had the bandwidth to implement it yet. Sorry about that :(. |
I'm having the same error. How should one properly handle the res object? I need an example of how to do it. I added res.resume() to all the callbacks of the methods, and I'm still getting these errors:
I also get the |
Turns out my issue was that I forgot to install GraphicsMagick for the gm module. It had nothing to do with knox. -.- However, I'd still like to know what to do with the res object and how to properly handle it. Is res.resume() all that's needed, or do I need to listen for error events on it? Thanks. |
You should definitely listen for error events on the response object (and in general on all streams). Otherwise, if they occur, your program will crash. |
Following code helped to fix this read ECONNRESET error. Thanks for saving my day.
|
I'm keep getting ECONNRESET from knox even though I'm attaching an error handler on the returned request object. This causes my server to crash every time and it's really frustrating. It's also strange that statuscode != 200 doesn't err out but that's another story. I also use putStream in the app frequently and that doesn't err out at all.
I think it's an error with knox, we should be able to have a clean way to handle any errors. Anyone know what's going on here?
Environment
node: 0.10.5
knox: 0.8.4
express: 3.3.3
mode: production
My putFile Call
My trace with LongJohn:
Error: read ECONNRESET
at errnoException (net.js:884:11)
at onread (net.js:539:19)
The text was updated successfully, but these errors were encountered: