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

newrelic.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 958#121179481

    GitHub | 2 years ago | alexmprog
    java.lang.IllegalStateException: Cannot read raw response body of a converted body.
  2. 0

    Problem with ResponseBuilderExtension + Retrofit 2.0 - Android - New Relic Online Technical Community

    newrelic.com | 7 months ago
    java.lang.IllegalStateException: Cannot read raw response body of a converted body.
  3. 0

    GitHub comment 958#139165917

    GitHub | 1 year ago | ialmetwally
    java.lang.IllegalStateException: Cannot read raw response body of a converted body.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot read raw response body of a converted body.

      at retrofit.NoContentResponseBody.source()
    2. Retrofit
      NoContentResponseBody.source
      1. retrofit.NoContentResponseBody.source(NoContentResponseBody.java:41)
      1 frame
    3. com.newrelic.agent
      OkHttp2Instrumentation.body
      1. com.newrelic.agent.android.instrumentation.okhttp2.ResponseBuilderExtension.body(ResponseBuilderExtension.java:70)
      2. com.newrelic.agent.android.instrumentation.okhttp2.OkHttp2Instrumentation.body(OkHttp2Instrumentation.java:33)
      2 frames
    4. Retrofit
      OkHttpCall$1.onResponse
      1. retrofit.OkHttpCall.parseResponse(OkHttpCall.java:124)
      2. retrofit.OkHttpCall.access$000(OkHttpCall.java:25)
      3. retrofit.OkHttpCall$1.onResponse(OkHttpCall.java:90)
      3 frames
    5. com.newrelic.agent
      CallbackExtension.onResponse
      1. com.newrelic.agent.android.instrumentation.okhttp2.CallbackExtension.onResponse(CallbackExtension.java:45)
      1 frame
    6. OkHttp
      NamedRunnable.run
      1. com.squareup.okhttp.Call$AsyncCall.execute(Call.java:170)
      2. com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames