Parthiv Mistri
09/26/2020, 6:09 AMokHttp4
which I faced only in release environment when minifyEnabled
and shrinkResources
are enabled.
Fatal Exception: java.lang.IllegalStateException: cannot make a new request because the previous response is still open: please call response.close()
at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.java:223)
at okhttp3.internal.connection.RealCall.enterNetworkInterceptorExchange(RealCall.java:223)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:66)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:100)
at com.pocketaces.locostudio.network.interceptors.OAuthInterceptor$intercept$1.invokeSuspend(OAuthInterceptor.java:111)
I know the reason and I have fixed the cause but still wondering why this crash don’t come in debug environment.