Skip to content

Authentication Error. #600

@noiramvld

Description

@noiramvld

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions