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

fix drive token generation and update readme #259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shubhindia
Copy link

@shubhindia shubhindia commented May 13, 2022

Signed-off-by: Shubham Gopale shubhindia123@gmail.com

@UsamaKarim
Copy link

Still error

Traceback (most recent call last):
  File "/Users/amigo/dev/mirror-bot/generate_drive_token.py", line 18, in <module>
    credentials.refresh(Request())
  File "/opt/homebrew/lib/python3.9/site-packages/google/oauth2/credentials.py", line 302, in refresh
    ) = reauth.refresh_grant(
  File "/opt/homebrew/lib/python3.9/site-packages/google/oauth2/reauth.py", line 347, in refresh_grant
    _client._handle_error_response(response_data)
  File "/opt/homebrew/lib/python3.9/site-packages/google/oauth2/_client.py", line 60, in _handle_error_response
    raise exceptions.RefreshError(error_details, response_data)
google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', {

@shubhindia
Copy link
Author

@UsamaKarim error says token might be expired or revoked. Please create a new credentials or download the refreshed ones from your gcloud console.

Signed-off-by: shubhindia <shubhindia123@gmail.com>
@shubhindia shubhindia force-pushed the fix-gdrive-token-generation branch from 41bfd44 to 8dee90b Compare May 16, 2022 04:20
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

Successfully merging this pull request may close these issues.

2 participants