我使用nodejs(0.12)和express(3.1.0)。 我的服務器保存了一段時間運行完美,但一些次後,就開始給400(壞請求),並保持它給400對接下來的所有請求nodejs服務器提供錯誤的請求(400)錯誤。爲什麼?
message: "Error: Bad Request
at SendStream.error (/var/www/storehippo/node_modules/express/node_modules/send/lib/send.js:145:16)
at SendStream.pipe (/var/www/storehippo/node_modules/express/node_modules/send/lib/send.js:298:31)
at Object.static (/var/www/storehippo/node_modules/express/node_modules/connect/lib/middleware/static.js:83:8)
at Object.handle (eval at eval at wrapHandle (/var/www/storehippo/node_modules/newrelic/lib/instrumentation/connect.js:1:0))
at /var/www/storehippo/node_modules/express/node_modules/connect/lib/proto.js:199:15
at /var/www/storehippo/node_modules/newrelic/lib/transaction/tracer/index.js:157:28
at Object.<anonymous> (/var/www/storehippo/dist/dist_17-09-2016_10:20:03/app/index.js:252:5)
at Object.handle (eval at eval at wrapHandle (/var/www/storehippo/node_modules/newrelic/lib/instrumentation/connect.js:1:0))
at /var/www/storehippo/node_modules/express/node_modules/connect/lib/proto.js:199:15
at /var/www/storehippo/node_modules/newrelic/lib/transaction/tracer/index.js:157:28"
爲了修復它,我必須重新啓動我的服務器和無法找到它的根本原因。
如何找到根本原因並解決它?
您需要提供比這更多的信息。 –
請爲我們提供一些解決問題的代碼。 –
@ravishankar恩?你解決了嗎? – rsp