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

at IncomingMessage.Request.onResponse.buffer #485

Closed
shisancoolboy opened this issue Mar 20, 2013 · 1 comment
Closed

at IncomingMessage.Request.onResponse.buffer #485

shisancoolboy opened this issue Mar 20, 2013 · 1 comment

Comments

@shisancoolboy
Copy link

using request(url,function(e,r,b) {}).and the response body is not exceed 1GB.how to fix the problem.

the error information is below:

events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: socket hang up
at createHangUpError (http.js:1360:15)
at ServerResponse.OutgoingMessage._writeRaw (http.js:507:26)
at ServerResponse.OutgoingMessage._send (http.js:476:15)
at ServerResponse.OutgoingMessage.write (http.js:749:16)
at Request._callback (/usr/local/bin/EC/httprequest.js:94:27)
at Request.init.self.callback (/usr/local/bin/node_modules/request/index.js:142:22)
at Request.EventEmitter.emit (events.js:99:17)
at Request.onResponse (/usr/local/bin/node_modules/request/index.js:856:14)
at Request.EventEmitter.emit (events.js:126:20)
at IncomingMessage.Request.onResponse.buffer (/usr/local/bin/node_modules/request/index.js:808:12)

@mikeal
Copy link
Member

mikeal commented Mar 20, 2013

responses this large you'll need to stream. read the docs on streaming support in request.

@mikeal mikeal closed this as completed Aug 27, 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

2 participants