fix an URIError problem if OAuth2 cache is expired.