Intercept and retry call by means of OkHttp Interceptors
问题 I need to retry request inside of OkHttp Interceptor . For example there is incoming request which needs Authorization token. If Authorization token is expired, server returns response with 403 code. In this case I am retrieving a new token and trying to make call again by using the same chain object. But OkHttp throws an exception, which states that you cannot make two requests with the same chain object. java.lang.IllegalStateException: network interceptor org.app.api.modules