错误代码门户
Node.jsNode.js错误代码

HPE_UNEXPECTED_CONTENT_LENGTH

hpe unexpected content length

代码 HPE_UNEXPECTED_CONTENT_LENGTH · Node.js 报告的问题。

服务器正在发送内容长度标头和传输编码:分块。 Transfer-Encoding:分块允许服务器为动态生成的内容维护 HTTP 持久连接。在这种情况下,无法使用 Content-Length HTTP 标头。 使用内容长度或传输编码:分块。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

Server is sending both a Content-Length header and Transfer-Encoding: chunked. Transfer-Encoding: chunked allows the server to maintain an HTTP persistent connection for dynamically generated content. In this case, the Content-Length HTTP header cannot be used. Use Content-Length or Transfer-Encoding: chunked.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。