When there is an invalid config set, call to fetch token fails with exception:
throw new UnexpectedResponseException(httpResponseCode,
+ " Unexpected response."
+ " Check configuration, URLs and proxy settings."
+ " proxies=" + proxies,
Issue here is that UnexpectedResponseException is not recognized as irrecoverable state and ends up being retried. This needs to be fixed.