Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work #9

Open
lopezloo opened this issue May 16, 2023 · 3 comments
Open

Doesn't work #9

lopezloo opened this issue May 16, 2023 · 3 comments

Comments

@lopezloo
Copy link

lopezloo commented May 16, 2023

Crashes on startup with following traceback:

Traceback (most recent call last):
  File "get-gdrive-appdata.py", line 372, in <module>
    main()
  File "get-gdrive-appdata.py", line 278, in main
    master_token = get_master_token(args.account, args.password, device_id, target_package)
  File "get-gdrive-appdata.py", line 208, in get_master_token
    r.raise_for_status()
  File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://android.clients.google.com/auth

I have submitted correct credentials.

@nelenkov
Copy link
Owner

It's been a while, the API might have changed, or that particular endpoint may be deprecated.

@lopezloo
Copy link
Author

lopezloo commented May 16, 2023

I managed to authenticate to my Google Drive account using python PyDrive2 package (https://github.com/iterative/PyDrive2). I used this package to list all folders from my drive but I don't see any hidden folders/files here.

I managed to resolve the main issue that brought me here (I have restored my backup on Android emulator) but still, this package crashes. Maybe it could be fixed.

It seems to be crashing at https://android.clients.google.com/auth endpoint so maybe it's only authentication issue. Maybe it could be fixed.

I have created question in PyDrive2 repository about accessing appdata: iterative/PyDrive2#277

@nelenkov
Copy link
Owner

Thanks for the update. I don't really have time to work on this right now, so if you find a way that works, PRs are much appreciated.

IIRC, appdata is special, it's only visible to Android clients, probably because the tokens you get from android.clients have more/different scopes.

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

No branches or pull requests

2 participants