每天随机我都会收到这些错误,这会使节点无响应。我无法重现它。我该怎么办?
Jul 21 12:38:38 localhost Pchat.log RangeNotSatisfiableError: Range Not Satisfiable
Jul 21 12:38:38 localhost Pchat.log at SendStream.error (/home/ubuntu/node_modules/send/index.js:275:31)
Jul 21 12:38:38 localhost Pchat.log at SendStream.send (/home/ubuntu/node_modules/send/index.js:618:19)
Jul 21 12:38:38 localhost Pchat.log at onstat (/home/ubuntu/node_modules/send/index.js:677:10)
Jul 21 12:38:38 localhost Pchat.log at FSReqWrap.oncomplete (fs.js:83:15)
Jul 21 12:38:38 localhost Pchat.log RangeNotSatisfiableError: Range Not Satisfiable
Jul 21 12:38:38 localhost Pchat.log at SendStream.error (/home/ubuntu/node_modules/send/index.js:275:31)
Jul 21 12:38:38 localhost Pchat.log at SendStream.send (/home/ubuntu/node_modules/send/index.js:618:19)
Jul 21 12:38:38 localhost Pchat.log at onstat (/home/ubuntu/node_modules/send/index.js:677:10)
Jul 21 12:38:38 localhost Pchat.log at FSReqWrap.oncomplete (fs.js:83:15)
Jul 21 12:38:38 localhost Pchat.log RangeNotSatisfiableError: Range Not Satisfiable
Jul 21 12:38:38 localhost Pchat.log at SendStream.error (/home/ubuntu/node_modules/send/index.js:275:31)
Jul 21 12:38:38 localhost Pchat.log at SendStream.send (/home/ubuntu/node_modules/send/index.js:618:19)
Jul 21 12:38:38 localhost Pchat.log at onstat (/home/ubuntu/node_modules/send/index.js:677:10)
Jul 21 12:38:38 localhost Pchat.log at FSReqWrap.oncomplete (fs.js:83:15)
答案 0 :(得分:3)
看起来像send package错误。当请求包含带unreachable range of stream的标题column
时,会发生这种情况(第3段)。将问题添加到发送包中会更好。
要重现它,请尝试发送Content-Range
。但在看how it works之前。