我使用Express(3.6.0)+强大(最新)上传文件到S3。
当我提交帖子时,我总是收到错误Request Aborted
。
incoming_form.js
:
IncomingForm.prototype.parse = function(req, cb) {
...
req
.on('aborted', function() {
self.emit('aborted');
self._error(new Error('Request aborted'));
})
...
}
[Error: Request aborted]
child process: Request aborted
Error: Request aborted
at IncomingMessage.<anonymous>
(/node_modules/formidable/lib/incoming_form.js:107:19)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at abortIncoming (http.js:1911:11)
at Socket.serverSocketCloseListener (http.js:1923:5)
at Socket.EventEmitter.emit (events.js:117:20)
at TCP.close (net.js:465:12)
我想知道为什么我会中止以及如何调试它。