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

Error 400: invalid_request #361

Open
tharsdim opened this issue Apr 10, 2023 · 4 comments
Open

Error 400: invalid_request #361

tharsdim opened this issue Apr 10, 2023 · 4 comments

Comments

@tharsdim
Copy link

Any help with this one please? Created new credentials but still I get the same issue.

Error 400: invalid_request
The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.
Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob

@charlesmccann
Copy link

Not sure the best solution, but I have a solution.

changed in: init.py
flow.redirect_uri = "http://127.0.0.1"

Then when you run your upload script, and go through Google's auth steps, you can just copy google's redirect response to your localhost (127.0.0.1) after the ?code= in the URL and paste that into your verification code.

I created an echo server in python to respond to requests on port 80 (but might not needed).

@tharsdim
Copy link
Author

thank you for your reply. where is init.py? I am using raspbian. what a mess. i think i need some help with this

@cdalinghaus
Copy link

Not sure the best solution, but I have a solution.

changed in: init.py flow.redirect_uri = "http://127.0.0.1"

Then when you run your upload script, and go through Google's auth steps, you can just copy google's redirect response to your localhost (127.0.0.1) after the ?code= in the URL and paste that into your verification code.

I created an echo server in python to respond to requests on port 80 (but might not needed).

This worked for me, be sure to only copy the value of the get parameter.

@tharsdim
Change this line and then run from sources, as per readme:

flow.redirect_uri = oauth2client.client.OOB_CALLBACK_URN

@SalimF
Copy link

SalimF commented Jul 18, 2023

I got same issue:

Access blocked: ******.com’s request is invalid

******@gmail.com
You can’t sign in because elminasa.com sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of ******.com, see error details.
Error 400: invalid_request

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

No branches or pull requests

4 participants