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

Already on GitHub? Sign in to your account

at IncomingMessage.Request.onResponse.buffer #485

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

Comments

Projects
None yet
2 participants

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)

Owner

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 Aug 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment