Hi guys, I’m curious with a crash in `okHttp4` wh...
# squarelibraries
p
Hi guys, I’m curious with a crash in
okHttp4
which I faced only in release environment when
minifyEnabled
and
shrinkResources
are enabled.
Copy code
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.