java.lang.IllegalStateException

Expected `Content-Length: 39` bytes, but only 0 were written.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4467

  • Expected `Content-Length: 39` bytes, but only 0 were written.
  • via Coderanch by Joseph Siao, 8 months ago
    0 response bytes written, but Content-Length header equals 689
  • via Oracle Community by 843836, 5 months ago
    0 response bytes written, but Content-Length header equals 37394
  • Stack trace

    • java.lang.IllegalStateException: Expected `Content-Length: 39` bytes, but only 0 were written. at org.http4s.blaze.util.IdentityWriter.org$http4s$blaze$util$IdentityWriter$$$anonfun$3(IdentityWriter.scala:58) at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:253) at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.