OAuth Client ID Token has been Expired or Revoked

Hello,

We created an OAuth 2.0 Client ID on November 3 for a Desktop App. It worked fine for a day and ever since we have been getting the following error while using the app,

 

ERROR:root:('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})
WARNING:google.auth.compute_engine._metadata:Compute Engine Metadata server unavailable on attempt 1 of 3. Reason: timed out
WARNING:google.auth.compute_engine._metadata:Compute Engine Metadata server unavailable on attempt 2 of 3. Reason: [Errno 113] No route to host
WARNING:google.auth.compute_engine._metadata:Compute Engine Metadata server unavailable on attempt 3 of 3. Reason: timed out
WARNING:google.auth._default:Authentication failed using Compute Engine authentication due to unavailable metadata server.
ERROR:root:Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application.

 

We regenerated new credentials but to no use, the error persists. There hasn't been any configuration related changes with the app and there is no option of creating refresh-able token either.

What are our options here, can anyone suggest a way around it?

Thank You.

1 1 763
1 REPLY 1

Hi, @nishantn 
Have you tackled it?
I have the same issue. I've generated new tokens, but neither of them doesn't work(