prasmussen / gdrive

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

Access blocked #654

Open Mmisiek opened 2 years ago

Mmisiek commented 2 years ago
image
cwchenwang commented 2 years ago

same problem here

LegendOriMedia commented 2 years ago

Same. Crazy thing is that it was working just fine a few days ago. Been running cloud servers on runpod - was working, now is not. I've tried again and again.

manastahir commented 2 years ago

same error

jiarui-liu commented 2 years ago

same error here

EdMUK commented 2 years ago

same

fa16-030 commented 2 years ago

same error.

patthewebrat commented 2 years ago

Same error.

Msameim181 commented 2 years ago

Same here

aratnamirasugab commented 2 years ago

Hi, if anyone has managed to pass this issue please share the tips :)

victorup commented 2 years ago

same problem

Jafarili commented 2 years ago

same problem

markusgerber76 commented 2 years ago

Fixed in https://github.com/prasmussen/gdrive/issues/645

knwng commented 2 years ago

If you've logged in before, you can copy the token file ${HOME}/.gdrive/token_v2.json to the same place in your new machine, then you can skip the login process.

tryauuum commented 2 years ago

not an automated solution, but if you want to download a file from google drive to a remote server, you can launch a web browser on that server

mkdir ~/downloads/
chmod 777 ~/downloads/
# LAUNCH_URL should be in quotes and set to the link of your google drive file
# VNC_PW is set to password
sudo docker run --rm -it --shm-size=512m -p 6901:6901 -v ~/downloads/:/home/kasm-user/Downloads -e VNC_PW=YOUR_PASSWORD -e LAUNCH_URL='LINK_TO_YOUR_FILE' kasmweb/chrome:1.11.0

then you can navigate to https://PUBLIC_IP_OF_YOUR_SERVER:6901 log in with kasm_user and your password and complete whatever captchas / questions google presents.

more information on how the end result looks is here https://hub.docker.com/r/kasmweb/chrome

harshshredding commented 2 years ago

Still the same problem today.

abaybektursun commented 2 years ago

same problem

Msameim181 commented 2 years ago

You can use this Repository. Don't forget to hit Star.

pvs1209pvs commented 2 years ago

I am also experiencing the same issue.

rrosnik commented 2 years ago

I also have this problem. Iā€™m wondering why this problem has occurred. It was working before

ethanjyx commented 2 years ago

Seems this is due to this https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

October 3, 2022 - the OOB flow is deprecated for OAuth clients created before February 28, 2022
yschondorf commented 2 years ago

I downloaded gdrive 2.1.1 for Windows from here - https://github.com/prasmussen/gdrive/releases and the problem still exists. After running gdrive aboutI get an "Authentication needed" notice with a URL, but when I go to the URL I get the Access blocked issue. Should I download from somewhere else? Or should I do anything locally?

rrosnik commented 1 year ago

I downloaded gdrive 2.1.1 for Windows from here - https://github.com/prasmussen/gdrive/releases and the problem still exists. After running gdrive aboutI get an "Authentication needed" notice with a URL, but when I go to the URL I get the Access blocked issue. Should I download from somewhere else? Or should I do anything locally?

This problem is because of changes happens in google policy I think. So owners of this package have to have some change on their package.

harshshredding commented 1 year ago

I think I am going to try using Dropbox API for now :cry:

pvs1209pvs commented 1 year ago

You can also try using rclone It has support for Google Drive too along with many others. I used to upload my backup to the Google Drive and it works like a charm

Jafarili commented 1 year ago

rclone worked for me šŸ‘

santapo commented 1 year ago

same problem here

charliedev26 commented 1 year ago

Same problem.. any solution ?

B-lanc commented 1 year ago

So this problem is caused by Google changing the OAuth method. It would just mean you cannot get the token, so if you have already got a token to your drive previously, and still have it stored, you can reuse it as @knwng stated.

Someone else (either on this repo or on gshell's repo) also mentioned spawning a web server that loops back the request (which is apparently what's the new guidelines require), but they didn't provide how to do it, and I wasn't able to replicate it. I'll link to it later if I can find the comment.

Someone will just have to migrate the code and follow their new guidelines. https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

I want to do it, sadly I genuinely do not understand how it works after reading the source code myself.

B-lanc commented 1 year ago

Ok just reading through the issues list, I have tried it and #645 worked Just follow the steps listed, but you need to install go as well as enable google drive API Link to the fork is https://github.com/carstentrink/gdrive

monk1337 commented 1 year ago

You can try this method. It's working.

Generating an OAuth token

curl -H "Authorization: Bearer ACCESS_TOKEN" https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media -o FILE_NAME

source

Mmisiek commented 1 year ago

You can try this method. It's working.

Generating an OAuth token

curl -H "Authorization: Bearer ACCESS_TOKEN" https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media -o FILE_NAME

source

But this is solution for download, what about upload ?

BOOMER8106 commented 1 year ago

WTF is this bullshit? I can't get into my domain. I have a fucking store online and cant get in it to make any money or changes to it. How the fuck do I get blocked out of my own shit? This is fucking bullshit.

omo commented 1 year ago

FYI: This is still happening.

madfcat commented 1 year ago

I have the same issue šŸ¤¦ā€ā™€ļø

BOOMER8106 commented 1 year ago

WTF

ZarrarAhmedKhan commented 1 year ago

Use this: https://github.com/BugCode1/gdrive/releases/tag/2.1.2 its working for me. verification_code:

just copy the verification code (****** - for example) from this url after redirecting
http://localhost:1/?state=state&code=******&scope=https://www.googleapis.com/auth/drive