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

Requesting authentication for Google Drive... Failed {'Error': 'BadAuthentication'} #207

Open
jacolamanna opened this issue Oct 5, 2023 · 8 comments

Comments

@jacolamanna
Copy link

I still get the Bad authentication error, no matter the OS or python version or gauth version.
I tried python 3.11, 3.9.18, gauth git commit b22c57a but also the latest
I tested both linux and osx, the latter with both python versions using pyenv (tcl/tk with brew) and python-tk / python-11 with homebrew.

I tried with all authentication methods (2FA on or off, app password or account password, password input or in the settings file...)
I also obtained an oauth token for a custom app with a custom script, wrote the token in the settings, whapa still produces the badauth error and deletes the oauth string from the settings file.

@gholker
Copy link

gholker commented Oct 12, 2023

I had some luck with this: simon-weber/gpsoauth#48 (comment)

I got authenticated but the response was empty. Still trying to figure it out.

This is my version of the docker file: https://gist.github.com/gholker/80a8b028eb02f99db9aa7fa843d97d74

@aaronshenhao
Copy link

aaronshenhao commented Dec 16, 2023

I'm still having the same problem. I got it to work with https://github.com/limontec/WhatsApp-GDrive-Downloader, which uses an older fork of this project (and perhaps an older version of gpsoauth too). The users of gpsoauth still appear to be having the issues, despite the latest commit.

I don't know why it works with that fork. It could be that Google's own Collab servers are less likely to go through checks, or it could be something about the older code and its dependencies (that could probably be checked by running the code locally and seeing if it still works). I'm not using 2FA.

@southall01
Copy link

I'm still having the same problem. I got it to work with https://github.com/limontec/WhatsApp-GDrive-Downloader, which uses an older fork of this project (and perhaps an older version of gpsoauth too). The users of gpsoauth still appear to be having the issues, despite the latest commit.

I don't know why it works with that fork. It could be that Google's own Collab servers are less likely to go through checks, or it could be something about the older code and its dependencies (that could probably be checked by running the code locally and seeing if it still works). I'm not using 2FA.

Thanks din't not work for me ..get cannot stat '/content/00351xxxxxx/files/whatsapp_backup_00351xxxxxxx.zip': No such file or directory
File not found!

@aaronshenhao
Copy link

aaronshenhao commented Dec 20, 2023

I'm still having the same problem. I got it to work with https://github.com/limontec/WhatsApp-GDrive-Downloader, which uses an older fork of this project (and perhaps an older version of gpsoauth too). The users of gpsoauth still appear to be having the issues, despite the latest commit.
I don't know why it works with that fork. It could be that Google's own Collab servers are less likely to go through checks, or it could be something about the older code and its dependencies (that could probably be checked by running the code locally and seeing if it still works). I'm not using 2FA.

Thanks din't not work for me ..get cannot stat '/content/00351xxxxxx/files/whatsapp_backup_00351xxxxxxx.zip': No such file or directory File not found!

It's an issue with the code (if you want to export, write the code yourself or mount your Google Drive account and copy it over manually). You should be able to see the downloaded files under /content. If you reached that part without an error message in the previous part, it means that the authentication was successful. To verify this, check that it has shown your info correctly (without download_all selected). If it shows your info, it must have connected to Google Drive.

As an interesting side note, I discovered that some images are missing, when compared to another device that I have transferred my Whatsapp account to, despite it also using Google Drive to download old messages. For example, when I get the image files from the media file in Internal Storage of the new device, I get ~2000 images, but I only get ~400 after using this method.

@Sarmingsteiner
Copy link

Sarmingsteiner commented Mar 9, 2024

@aaronshenhao

or mount your Google Drive account

Do you have any idea where / how to mount a Google Drive account so that the WhatsApp backups are visible & accessible?

@aaronshenhao
Copy link

aaronshenhao commented Mar 9, 2024 via email

@Sarmingsteiner
Copy link

Thanks @aaronshenhao, I finally found a working solution to get access to / download the WA backup from Google Drive:
YuriCosta/WhatsApp-GD-Extractor-Multithread#47 (comment)

@jddcef
Copy link

jddcef commented May 27, 2024

Thanks @aaronshenhao, I finally found a working solution to get access to / download the WA backup from Google Drive: YuriCosta/WhatsApp-GD-Extractor-Multithread#47 (comment)

Doesn't seem to help here. Maybe the android_id isn't optional? What paramaters do you set in your cfg?

I notice in the latest version of gpsoauth there is a exchange_token method described in their latest README. They said it was to solve bad_authentication issues. Could whapa not incorporate that method perhaps?

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

6 participants