You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Token generated via the Credentials / OAuth
Actual Behavior
File "C:\Users\mike\Documents\Work - Scripts\Google Calendar Invite Automation\test.py", line 63, in
main()
File "C:\Users\mike\Documents\Work - Scripts\Google Calendar Invite Automation\test.py", line 25, in main
creds = Credentials.from_authorized_user_file('token.json', SCOPES)
File "C:\Users\mike\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\google\oauth2\credentials.py", line 440, in from_authorized_user_file
return cls.from_authorized_user_info(data, scopes)
File "C:\Users\mike\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\google\oauth2\credentials.py", line 390, in from_authorized_user_info
raise ValueError(
ValueError: Authorized user info was not in the expected format, missing fields client_id, refresh_token, client_secret.
Steps to Reproduce the Problem
Generate a new Oauth client id?
Specifications
PPython 3.10.9
OS - Windows 10 Pro 22H2
Reacted by Freddy Wordingham, David Trigo Chávez and cheeseyone1
Activity
FreddyWordingham commentedon Apr 11, 2024
Same issue seen on MacOS with Python 3.10