Errors when running gam

2,618 views
Skip to first unread message

Mike Henderson

unread,
Jun 14, 2021, 5:01:12 PM6/14/21
to GAM for Google Workspace
C:\gam>gam info domain
Traceback (most recent call last):
  File "gam\__main__.py", line 50, in <module>
  File "gam\__main__.py", line 45, in main
  File "gam\__init__.py", line 11232, in ProcessGAMCommand
  File "gam\gapi\directory\domains.py", line 25, in info
  File "gam\gapi\directory\customer.py", line 12, in doGetCustomerInfo
  File "gam\gapi\directory\__init__.py", line 5, in build
  File "gam\__init__.py", line 953, in buildGAPIObject
  File "gam\__init__.py", line 884, 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 208, in refresh
  File "google\oauth2\_client.py", line 248, in refresh_grant
  File "google\oauth2\_client.py", line 124, in _token_endpoint_request
  File "google\oauth2\_client.py", line 60, in _handle_error_response
google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', '{\n  "error": "invalid_grant",\n  "error_description": "Bad Request"\n}')
[9680] Failed to execute script __main__

I have not used gamin in a while. getting the above errors. What am I missing? This is GAM 5.33 on win10 64. Tried 6.05 and same thing

Ross Scroggs

unread,
Jun 14, 2021, 5:09:51 PM6/14/21
to google-ap...@googlegroups.com
MIke,

Do:
gam oauth revoke
gam oauth create

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0111ee69-3914-4d72-9324-9c8b10e9e1a1n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages