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


Solutions on the web3

Solution icon of github
via GitHub by alexmprog
, 1 year ago
Cannot read raw response body of a converted body.

Solution icon of web
Cannot read raw response body of a converted body.

Solution icon of github
via GitHub by ialmetwally
, 1 year ago
Cannot read raw response body of a converted body.

Stack trace

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 com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
	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)

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 are the first who have seen this exception. Write a tip to help other users and build your expert profile.