-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Not sure if this repo is really maintained anymore, but asking here just in case. I am able to setup and use this package as expected (generating a credentials-sheets.json and a token.json in my project root), and it works for a few hours as expected. I can check my email inbox and do everything without an issue. However, after a few hours, I consistently get the following error when I try to use any of the API functions:
raise exceptions.RefreshError(
error_details, response_data, retryable=retryable_error
)
google.auth.exceptions.RefreshError: ('invalid_scope: Some requested scopes were invalid. {invalid=[a, c, e, g, h, i, l, m, ., /, o, p, s, t, :]}', {'error': 'invalid_scope', 'error_description': 'Some requested scopes were invalid. {invalid=[a, c, e, g, h, i, l, m, ., /, o, p, s, t, :]}', 'error_uri': 'https://developers.google.com/identity/protocols/oauth2'})
The only way to fix this I've found is to remove token.json and re-authenticate in the browser with import ezgmail. I turned on all the Gmail API OAuth scopes when I originally set my project up. Has anyone faced this error? Any ideas on how to fix it?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels