java.lang.IllegalStateException: Cannot read raw response body of a converted body.

Hot problem!
This exception has a lot of traffic. You can help 27 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by alexmprog
, 2 years ago
Cannot read raw response body of a converted body.
via newrelic.com by Unknown author, 1 year ago
via GitHub by ialmetwally
, 2 years ago
Cannot read raw response body of a converted body.
java.lang.IllegalStateException: Cannot read raw response body of a converted body.
at retrofit.NoContentResponseBody.source(NoContentResponseBody.java:41)
at com.newrelic.agent.android.instrumentation.okhttp2.ResponseBuilderExtension.body(ResponseBuilderExtension.java:70)
at com.newrelic.agent.android.instrumentation.okhttp2.OkHttp2Instrumentation.body(OkHttp2Instrumentation.java:33)
at retrofit.OkHttpCall.parseResponse(OkHttpCall.java:124)
at retrofit.OkHttpCall.access$000(OkHttpCall.java:25)
at retrofit.OkHttpCall$1.onResponse(OkHttpCall.java:90)
at com.newrelic.agent.android.instrumentation.okhttp2.CallbackExtension.onResponse(CallbackExtension.java:45)
at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:170)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.