I\'m making a basic jquery playground site. I am getting Error: net::ERR_CONTENT_LENGTH_MISMATCH
is happening on page load and the background images are not loa
My team saw this on a single javascript file we were serving up. Every other file worked fine. We originally saw net::ERR_HTTP2_PROTOCOL_ERROR
. We switched from http2
back to http1.1
and then either net::ERR_INCOMPLETE_CHUNKED_ENCODING
or ERR_CONTENT_LENGTH_MISMATCH
. We ultimately discovered that there was a corporate filter (Trustwave) that was erroneously detecting an "infoleak" (we suspect it detected something in our file/filename that resembled a social security number). Getting corporate to tweak this filter resolved our issues.
In my case, I was using nodemon server.js
in a next.js
(server side rendered) app. By switching back to node server.js
, the error disappeared.