kevalpatel2106 / Stand-Up

Sitting is next cancer.
Apache License 2.0
3 stars 1 forks source link

Unknown InterruptedIOException exception while api call. #20

Open kevalpatel2106 opened 6 years ago

kevalpatel2106 commented 6 years ago
      Caused by: java.io.InterruptedIOException
                                                                         at okhttp3.internal.http2.Http2Stream.waitForIo(Http2Stream.java:579)
                                                                         at okhttp3.internal.http2.Http2Stream$FramingSource.waitUntilReadable(Http2Stream.java:371)
                                                                         at okhttp3.internal.http2.Http2Stream$FramingSource.read(Http2Stream.java:337)
                                                                         at okhttp3.internal.http2.Http2Codec$StreamFinishingSource.read(Http2Codec.java:210)
                                                                         at okio.Buffer.writeAll(Buffer.java:1005)
                                                                         at okio.RealBufferedSource.readString(RealBufferedSource.java:190)
                                                                         at okhttp3.ResponseBody.string(ResponseBody.java:175)
                                                                         at com.kevalpatel2106.network.NWInterceptor.processJsonResponse(NWInterceptor.kt:142)
                                                                         at com.kevalpatel2106.network.NWInterceptor.progressResponse(NWInterceptor.kt:87)
                                                                         at com.kevalpatel2106.network.NWInterceptor.intercept(NWInterceptor.kt:74)
                                                                         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
                                                                         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
                                                                         at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:212)
                                                                         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
                                                                         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
                                                                         at com.facebook.stetho.okhttp3.StethoInterceptor.intercept(StethoInterceptor.java:56)
                                                                         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
                                                                         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
                                                                         at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
                                                                         at okhttp3.RealCall.execute(RealCall.java:77)
                                                                         at retrofit2.OkHttpCall.execute(OkHttpCall.java:180)
                                                                         at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall.execute(ExecutorCallAdapterFactory.java:91)
                                                                         at com.kevalpatel2106.network.executor.refresher.RetrofitNetworkRefresher.read(RetrofitNetworkRefresher.kt:37)
                                                                         at com.kevalpatel2106.common.repository.Repository$fetch$flowable$1.subscribe(Repository.kt:66)
                                                                         at io.reactivex.internal.operators.flowable.FlowableCreate.subscribeActual(FlowableCreate.java:72)
                                                                         at io.reactivex.Flowable.subscribe(Flowable.java:13234) 
                                                                         at io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual(FlowableMap.java:36) 
                                                                         at io.reactivex.Flowable.subscribe(Flowable.java:13234) 
                                                                         at io.reactivex.Flowable.subscribe(Flowable.java:13180) 
                                                                         at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run(FlowableSubscribeOn.java:82) 
                                                                         at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66) 
                                                                         at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57) 
                                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
                                                                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) 
                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 
                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 
                                                                         at java.lang.Thread.run(Thread.java:764)

Unknown InterruptedIOException exception while api call.

kevalpatel2106 commented 6 years ago

Detailed explanation : Random throw java.io.InterruptedIOException when use OkHttpClient on Android