gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

Error 400 - Invalid_Request

Open MrAshRhodes opened this issue 2 years ago • 17 comments

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

MrAshRhodes avatar Oct 10 '22 10:10 MrAshRhodes

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

xyo-toy avatar Oct 12 '22 07:10 xyo-toy

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

valoriblaise avatar Oct 12 '22 20:10 valoriblaise

Today it worked on the first attemp.

valoriblaise avatar Oct 13 '22 09:10 valoriblaise

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

MrAshRhodes avatar Oct 13 '22 09:10 MrAshRhodes

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.

frasercrossman avatar Oct 15 '22 08:10 frasercrossman

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

felixschndr avatar Oct 20 '22 22:10 felixschndr

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

coderboy-exe avatar Oct 24 '22 11:10 coderboy-exe

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.

rtr-dnd avatar Nov 24 '22 11:11 rtr-dnd

Same problem here

G3zz avatar Nov 25 '22 17:11 G3zz

Same for me too.

grangep avatar Nov 29 '22 16:11 grangep

same here: image Related developer documentation

hradec avatar Nov 30 '22 00:11 hradec

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

slaff avatar Dec 01 '22 09:12 slaff

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

felixschndr avatar Dec 01 '22 10:12 felixschndr

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

BugCode1 avatar Dec 19 '22 07:12 BugCode1

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

yuenherny avatar Dec 31 '22 09:12 yuenherny

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

mlauronen avatar Jan 25 '23 13:01 mlauronen

@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

Spit-fires avatar Feb 23 '23 19:02 Spit-fires