Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Error. #600

Open
noiramvld opened this issue Jan 6, 2023 · 1 comment
Open

Authentication Error. #600

noiramvld opened this issue Jan 6, 2023 · 1 comment
Assignees

Comments

@noiramvld
Copy link

Summary

Followed the instructions on the site : https://developers.google.com/calendar/api/quickstart/python but got an error Authorized user info was not in the expected format, missing fields client_id, refresh_token, client_secret.

Expected Behavior

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
@FreddyWordingham
Copy link

Same issue seen on MacOS with Python 3.10

    raise ValueError(
ValueError: Authorized user info was not in the expected format, missing fields refresh_token, client_id, client_secret.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants