OkHttp Authenticator sometimes does not call authenticate on HTTP 401
问题 I have an issue that OkHttp 's Authenticator does not call the authenticate method in some cases of HTTP 401 errors. Interceptors are always called, but authenticator is sometimes called and sometimes not. Once it does not call it it will not call it for several minutes and all network calls will fail with HTTP 401. Then after 5-6 minutes it will "unstuck" and call the authenticate method again. I use it for refreshing token. If the token expiration is set to one hour, there are no issues,