Search code examples
javascriptherokuplayframeworkheroku-toolbelt

Play 2.5 && heroku: net::ERR_CONTENT_LENGTH_MISMATCH


I know that it is a duplicated question, but I can not find the solution.

I have a very very long string to pass: Seq contains 10000 base64 images.

Ok(Json.toJson(seq))

When I deploy on Heroku, the displayed string is cutted (in the middle of one of the first base64 image), and in the javascript console, it is written:

Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH

How I can fixe it?

PS: I now it is not the best way to transfer this images, but for now, it is way more easy.

Thank you!


Solution

  • Try upgrading to 2.5.1 or higher. This bug was fixed here https://github.com/playframework/playframework/issues/5835