lzzy12 / python-aria-mirror-bot

A telegram bot for all your mirror needs | OG Repo
https://t.me/pythonmirrorsupport
GNU General Public License v3.0
736 stars 1.3k forks source link

fix drive token generation and update readme #259

Open shubhindia opened 2 years ago

shubhindia commented 2 years ago

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

UsamaKarim commented 2 years ago

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 commented 2 years ago

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