prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

Error 400 - Invalid_Request #650

Open MrAshRhodes opened 2 years ago

MrAshRhodes commented 2 years ago

Each time i try to auth i get the following, the below is from the more details.

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: access_type=offline response_type=code redirect_uri=urn:ietf:wg:oauth:2.0:oob state=state client_id=367116221053-7n0vf5akeru7on6o2fjinrecpdoe99eg.apps.googleusercontent.com scope=https://www.googleapis.com/auth/drive
xyo-toy commented 2 years ago

Did you retry ? Had the same error and worked on the second try for me.

valoriblaise commented 2 years ago

I am getting the same error and I did at least 10 attempts.

valoriblaise commented 2 years ago

Today it worked on the first attemp.

MrAshRhodes commented 2 years ago

Its been hit and miss... its not really consistent other than it works less than it does. When it does work... great application

frasercrossman commented 2 years ago

The proper way to do this now seems to be to start up a local webserver and have the redirect_uri set to localhost to return the auth code directly to the app rather than requiring it to be copy-pasted, otherwise known as loopback.

felixschndr commented 2 years ago

Its been hit and miss... its not really consistent other than it works less than it does.

Same here. When I tried to run it on my Raspberry Pi 4 it complained, running the same thing on my Windows PC worked. Afterwards I just copied the token to the Raspberry 👍🏻

No problems with this so far

coderboy-exe commented 2 years ago

@frasercrossman Could you be a little more elaborate on how that should be done? A proper walk-through would be much appreciated

rtr-dnd commented 1 year ago

I can't sign in with gdrive about, not even a single success. It's been there since when I started using this library a week ago. I've tried several Windows PCs I have but no luck.

G3zz commented 1 year ago

Same problem here

grangep commented 1 year ago

Same for me too.

hradec commented 1 year ago

same here: image Related developer documentation

slaff commented 1 year ago

Same here :(

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
felixschndr commented 1 year ago

Should be fixed by https://github.com/prasmussen/gdrive/pull/660 (at least until Jan 31 2023)

BugCode1 commented 1 year ago

i find a way for fix this and get a build, this work for now: #665

https://github.com/BugCode1/gdrive/releases/tag/2.1.2

yuenherny commented 1 year ago

@BugCode1 Everything works until I clicked on Trust button:

This site can’t be reached
The webpage at http://localhost:1/?state=state&code=4/0AWgavdfD4na4xHuPi7C-DRfURsZnLdk2MOUdUbyZFK-L4VlL1u8cXBbVO1ibNU9qvePbNw&scope=https://www.googleapis.com/auth/drive might be temporarily down or it may have moved permanently to a new web address.
ERR_UNSAFE_PORT

I am using gdrive on AWS EC2 Ubuntu 20.04 instance.

mlauronen commented 1 year ago

@BugCode1 Instructions doesn't work for me. I am getting "Unable to connect. Firefox can’t establish a connection to the server at localhost:1." So there is no server listening in the port 1.

Spit-fires commented 1 year ago

@BugCode1 The webpage at http://localhost:1/?state=state&code=4/0AWtgzh7vF22HJKAQjThFqo8_WO4kTnuW5h5aV_OtO5SZL0RQtAsQJFMDPSgcFbqAWrqi3g&scope=https://www.googleapis.com/auth/drive might be temporarily down or it may have moved permanently to a new web address.

ERR_UNSAFE_PORT