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

Getting "Authorization Error Error 400: invalid_request" when executing "python3 generate_drive_token.py" #263

Closed onoakino closed 2 years ago

onoakino commented 2 years ago

Here is the exact error when I copy-paste the authorization link generated by "python3 generate_drive_token.py "


Authorization Error Error 400: invalid_request

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.

You can let the app developer know that this app doesn't comply with one or more Google validation rules.

Request details: The content in this section has been provided by the app developer. This content has not been reviewed or verified by Google.

If you’re the app developer, make sure that these request details comply with Google policies.

redirect_uri: urn:ietf:wg:oauth:2.0:oob


I've researched stackoverflow and this seemed to be a workaround for the error, however, I am not a programmer, and the suggested solution is way over my head to understand. Would it be possible to make a readme instruction on how to do this step-by-step? I'm stuck.


The error might have stemmed from me pasting the authorization link from my Oracle cloud vm (where I am running this project) to my local nework. Also, i used an alternative generate_drive_token.py from here.

closing.