Error Code Portal
Node.jsNode.jsError code

HPE_UNEXPECTED_CONTENT_LENGTH

hpe unexpected content length

Code HPE_UNEXPECTED_CONTENT_LENGTH · An issue reported by Node.js.

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.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.