youtube-upload icon indicating copy to clipboard operation
youtube-upload copied to clipboard

Error 400: invalid_request

Open tharsdim opened this issue 1 year ago • 4 comments

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

tharsdim avatar Apr 10 '23 13:04 tharsdim

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).

charlesmccann avatar May 11 '23 00:05 charlesmccann

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

tharsdim avatar Jun 17 '23 14:06 tharsdim

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: https://github.com/tokland/youtube-upload/blob/6a30b55d0fd4976571a5b9b34c01fd41cec49c7a/youtube_upload/auth/init.py#L17

cdalinghaus avatar Jul 11 '23 12:07 cdalinghaus

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

SalimF avatar Jul 18 '23 15:07 SalimF