You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don’t think this is an OkHttp bug. If you close a stream and then attempt to read it, that’s an IllegalStateException. My expectation here is some other interceptor is closing the response body.
Please provide a repro, or ask on a site like stackoverflow.
getting below exception and crashed my app
Fatal Exception: java.lang.IllegalStateException
closed
okio.RealBufferedSource.request (RealBufferedSource.kt:206)
okhttp3.logging.HttpLoggingInterceptor.intercept (HttpLoggingInterceptor.kt:248)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.kt:109)
okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp (RealCall.kt:201)
okhttp3.internal.connection.RealCall$AsyncCall.run (RealCall.kt:517)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
The text was updated successfully, but these errors were encountered: