gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

All google api call responds with 400 w/o body

Open padisah opened this issue 7 years ago • 12 comments

./gdrive list Failed to list files: googleapi: got HTTP response code 400 with body:

I have just confirmed access with the user. Trying to Upload a file also has the same response.

I have recompiled the gdrive binary with my own client and secret, and trying to access the same user's gdrive who owns the api key.

padisah avatar Nov 22 '19 18:11 padisah

I have the same issue. I get this error message whenever I try to use gdrive.

"googleapi: got HTTP response code 400 with body"

GraemeCaldwell avatar Nov 24 '19 10:11 GraemeCaldwell

I have the same issue, "Failed to list files: googleapi: got HTTP response code 400 with body: " or "Failed to upload file: googleapi: got HTTP response code 400 with body:". It seems this issue has been occurring since 13/11/2019.

wasanthakj avatar Nov 25 '19 00:11 wasanthakj

Hi all, Please try build gdrive with your Google credential. I wrote a script to do that very simply: https://github.com/mbrother2/backuptogoogle

mbrother2 avatar Nov 25 '19 00:11 mbrother2

I'm seeing the same issue as well. I'll give the above a try. Thank you @mbrother2.

jdstone avatar Nov 25 '19 01:11 jdstone

Hi all, Please try build gdrive with your Google credential. I wrote a script to do that very simply: https://github.com/mbrother2/backuptogoogle

Hi mbrother2, it seems the script works on Linux and FreeBSD only, is there any script available to do the same in Windows? Thanks.

wasanthakj avatar Nov 25 '19 02:11 wasanthakj

@wasanthakj

Maybe I can write a script to build gdrive on Windows. Please follow https://github.com/mbrother2/backuptogoogle

Thank you!

mbrother2 avatar Nov 25 '19 02:11 mbrother2

@jdstone

You welcome :)

mbrother2 avatar Nov 25 '19 02:11 mbrother2

Hi all, Please try build gdrive with your Google credential. I wrote a script to do that very simply: https://github.com/mbrother2/backuptogoogle

I didn't tried your script, but simple replaced the client_id and client secret to my own, and the compile with 'go build'. The compiled binary drops the same error as before. Please note, that I tried to use the same g suit user's gdrive, who owns the client id, so there should be no complain from google's side.

The http 400 problem doesn't refer to authentication issue, but a changed API interface instead on Google API. Gdrive API's section with release notes is luckily returns 404, so I can't find a reference on what could have changed on 13th of november.

It's also possible, that the interface change affects the authorization process instead, not the google drive api itself. This would explain why we get the same error for any API activity.

workaround: I have temporarily switched to use rclone instead

padisah avatar Nov 25 '19 09:11 padisah

At least at you work rclone T_T

Xaris avatar Nov 26 '19 02:11 Xaris

workaround: I have temporarily switched to use rclone instead

So what does it mean? I don't understand your message. Do you recommend a procedure to make it work again?

obygyv avatar Dec 06 '19 15:12 obygyv

@mbrother2, I used your script successfully to build gdrive and now it's working great! Thank you.

jdstone avatar Dec 06 '19 16:12 jdstone

@jdstone

You welcome :)

mbrother2 avatar Dec 07 '19 01:12 mbrother2