Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Access blocked #654

Open
Mmisiek opened this issue Oct 17, 2022 · 36 comments
Open

Access blocked #654

Mmisiek opened this issue Oct 17, 2022 · 36 comments

Comments

@Mmisiek
Copy link

Mmisiek commented Oct 17, 2022

image

@cwchenwang
Copy link

same problem here

@LegendOriMedia
Copy link

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
Copy link

same error

@jiarui-liu
Copy link

jiarui-liu commented Oct 25, 2022

same error here

@EdMUK
Copy link

EdMUK commented Oct 25, 2022

same

@fa16-030
Copy link

same error.

@patthewebrat
Copy link

Same error.

@Msameim181
Copy link

Same here

@aratnamirasugab
Copy link

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

@victorup
Copy link

victorup commented Nov 4, 2022

same problem

1 similar comment
@Jafarili
Copy link

Jafarili commented Nov 5, 2022

same problem

@markusgerber76
Copy link

Fixed in #645

@knwng
Copy link

knwng commented Nov 7, 2022

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
Copy link

tryauuum commented Nov 7, 2022

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
Copy link

Still the same problem today.

@abaybektursun
Copy link

same problem

@Msameim181
Copy link

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

@pvs1209pvs
Copy link

I am also experiencing the same issue.

@rrosnik
Copy link

rrosnik commented Nov 15, 2022

I also have this problem. I’m wondering why this problem has occurred. It was working before

@ethanjyx
Copy link

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
Copy link

yschondorf commented Nov 18, 2022

I downloaded gdrive 2.1.1 for Windows from here - https://github.com/prasmussen/gdrive/releases and the problem still exists. After running gdrive about I 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
Copy link

rrosnik commented Nov 19, 2022

I downloaded gdrive 2.1.1 for Windows from here - https://github.com/prasmussen/gdrive/releases and the problem still exists. After running gdrive about I 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
Copy link

harshshredding commented Nov 20, 2022

I think I am going to try using Dropbox API for now 😢

@pvs1209pvs
Copy link

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
Copy link

rclone worked for me 👍

@santapo
Copy link

santapo commented Nov 22, 2022

same problem here

@charliedev26
Copy link

Same problem.. any solution ?

@B-lanc
Copy link

B-lanc commented Nov 27, 2022

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
Copy link

B-lanc commented Nov 27, 2022

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
Copy link

monk1337 commented Dec 19, 2022

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
Copy link
Author

Mmisiek commented Dec 20, 2022

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
Copy link

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
Copy link

omo commented Mar 1, 2023

FYI: This is still happening.

@madfcat
Copy link

madfcat commented Mar 5, 2023

I have the same issue 🤦‍♀️

@BOOMER8106
Copy link

WTF

@ZarrarAhmedKhan
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests