I use a skipper with a skipper-s3 adapter to handle file downloads in the application for my sails.
It works fine when the file is sent normally, but when the request is interrupted, I received an unhandled error message and a failure in the sails.
events.js:85
throw er; // Unhandled 'error' event
^
Error: Request aborted
at IncomingMessage.onReqAborted (/Users/olivierroche/Dev/loopIt/API/node_modules/skipper/node_modules/multiparty/index.js:175:17)
at IncomingMessage.emit (events.js:104:17)
at abortIncoming (_http_server.js:279:11)
at Socket.socketOnEnd (_http_server.js:393:7)
at Socket.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickDomainCallback (node.js:381:11)
I looked at this topic:
Canceling the download crashes Sails js / Skipper
However, the problem does not seem to be resolved in my case. I am using skipper v0.5.5. Any clue to this error and how to handle this? This is quite problematic, because every time a user closes his tab, the server simply crashes.
adc06 source
share