请求在expressjs上中止

时间:2015-03-10 20:14:32

标签: node.js express

我正在使用expressjs和multer来处理我的nodejs服务器上的文件上传。 我经常在生产日志中收到此错误:

Error: Request aborted
at onaborted (/home/drp/server/node_modules/express/lib/response.js:951:15)
at Array.onfinish [as 0] (/home/drp/server/node_modules/express/lib/response.js:987:50)
at listener (/home/drp/server/node_modules/express/node_modules/on-finished/index.js:164:15)
at onFinish (/home/drp/server/node_modules/express/node_modules/on-finished/index.js:95:5)
at callback (/home/drp/server/node_modules/express/node_modules/on-finished/node_modules/ee-first/index.js:33:10)
at Socket.onevent (/home/drp/server/node_modules/express/node_modules/on-finished/node_modules/ee-first/index.js:66:5)
at Socket.emit (events.js:117:20)
at net.js:440:14
at process._tickCallback (node.js:419:13)

这究竟是什么意思? 如何跟踪并调试它?

1 个答案:

答案 0 :(得分:0)

如果你使用nginx。尝试重新启动它。

或任何负载均衡器,有时那些发送错误请求200(或304或不同请求)的ExpressJS应答此失败并生成Error: Request aborted