Hello!
When running any command (Sample below), GAM shows as token expired or revoked. I am able to access GAM and run projects when I refresh the token but then it expires again. Typically, this occurs within a few quick GAM jobs. All of the scopes have been authorized and show as Pass. Any ideas or suggestions on how to resolve this? Thanks in advance for your insights!
gam info domain
Traceback (most recent call last):
File "gam\__main__.py", line 49, in <module>
File "gam\__main__.py", line 44, in main
File "gam\__init__.py", line 11570, in ProcessGAMCommand
File "gam\gapi\directory\domains.py", line 25, in info
File "gam\gapi\directory\customer.py", line 18, in doGetCustomerInfo
File "gam\gapi\directory\__init__.py", line 5, in build
File "gam\__init__.py", line 1003, in buildGAPIObject
File "gam\__init__.py", line 931, in getValidOauth2TxtCredentials
File "gam\auth\oauth.py", line 467, in refresh
File "gam\auth\oauth.py", line 475, in _locked_refresh
File "google\oauth2\credentials.py", line 302, in refresh
File "google\oauth2\reauth.py", line 347, in refresh_grant
File "google\oauth2\_client.py", line 60, in _handle_error_response
google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})
[12300] Failed to execute script '__main__' due to unhandled exception!