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

Error 400 #16

Open
YuriCosta opened this issue Apr 7, 2018 · 20 comments
Open

Error 400 #16

YuriCosta opened this issue Apr 7, 2018 · 20 comments

Comments

@YuriCosta
Copy link

I runned into this error:

Traceback (most recent call last): File "WhatsAppGDExtract.py", line 206, in <module> main() File "WhatsAppGDExtract.py", line 191, in main runMain('sync', 'all', 0) File "WhatsAppGDExtract.py", line 138, in runMain drives = gDriveFileMap() File "WhatsAppGDExtract.py", line 65, in gDriveFileMap for result in jres['items']: KeyError: 'items'

After some debuging I traced the error back to the gDriveFileMap function, the rawGoogleDriveRequest returns a response

{ "error": { "errors": [ { "domain": "global", "reason": "invalid", "message": "Invalid query", "locationType": "parameter", "location": "q" } ], "code": 400, "message": "Invalid query" } }

Which is weird since the bearer is ok, it even returns a valid error-free empty list if I run the code in any account without whatsapp backup.

@JMGonzalezR
Copy link

@YuriCosta I have the same issue, but only with one account i tested

@YuriCosta
Copy link
Author

I fixed it, look up the xda thread.

@uchiha2121
Copy link

@YuriCosta post the ulr plis

@YuriCosta
Copy link
Author

@YuriCosta
Copy link
Author

Pull request made.

@herimanzano
Copy link

you can pass me your files, I tried, this error appears

Traceback (most recent call last):
File "WhatsAppGDExtract.py", line 215, in
main()
File "WhatsAppGDExtract.py", line 200, in main
runMain('sync', 'all', 0)
File "WhatsAppGDExtract.py", line 183, in runMain
getMultipleFiles(drive[1], folder)
File "WhatsAppGDExtract.py", line 131, in getMultipleFiles
data = json.loads(data)
File "C:\Users\Usuario\AppData\Local\Programs\Python\Python36-32\lib\jso
it__.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Users\Usuario\AppData\Local\Programs\Python\Python36-32\lib\jso
der.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Usuario\AppData\Local\Programs\Python\Python36-32\lib\jso
der.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@YuriCosta
Copy link
Author

I think you're fetching an older version, try my repository, you can see it in my profile or in the pull requests.

@valithria21
Copy link

Hello, would you help me recover some photos from a backup

@YuriCosta
Copy link
Author

What kind of error the program is showing?

@gilurbina
Copy link

Hey! can u help me with my Key error?

@Ditto89
Copy link

Ditto89 commented Sep 30, 2018

Hello and thanks for your work on this!
I'm using the lastest script version, and have set the settings.cfg, but I get this:

Traceback (most recent call last):
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Pyt hon36-32\lib\configparser.py", line 789, in get
value = d[option]
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Pyt hon36-32\lib\collectios_init_.py", line 883, in getitem
return self.missing(key) # support subclasses that define missing
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Pyt hon36-32\lib\collectio
s_init_.py", line 875, in missing
raise KeyError(key)
KeyError: 'celnumbr'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Lenovo\Downloads\WhatsAppGDExtract.p y", line 93, in getConfigs
celnumbr = config.get('auth', 'celnumbr')
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Pyt hon36-32\lib\configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'celnumbr' in section: 'auth'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Lenovo\Downloads\WhatsAppGDExtract.p y", line 277, in
main()
File "C:\Users\Lenovo\Downloads\WhatsAppGDExtract.p y", line 258, in main
runMain('info', 'settings', 0)
File "C:\Users\Lenovo\Downloads\WhatsAppGDExtract.p y", line 207, in runMain
getConfigs()
File "C:\Users\Lenovo\Downloads\WhatsAppGDExtract.p y", line 99, in getConfigs
except(ConfigParser.NoSectionError, ConfigParser.NoOptionError):
AttributeError: type object 'ConfigParser' has no attribute 'NoSectionError'

Could you help me?? Thanks!

@YuriCosta
Copy link
Author

@Ditto89 look if your config file is complete, looks like you're using a older version without the cell number

@Ditto89
Copy link

Ditto89 commented Oct 2, 2018

@Ditto89 look if your config file is complete, looks like you're using a older version without the cell number

Please, can you point me the newer version? I thought I was using it already (it already has the cell number field)...

@gilurbina
Copy link

gilurbina commented Oct 2, 2018 via email

@Ditto89
Copy link

Ditto89 commented Oct 7, 2018

https://github.com/YuriCosta/WhatsApp-GD-Extractor-Multithread Thats the link of the file, just enter and click on the ''Clone or download'' button, and done El mar., 2 de oct. de 2018 a la(s) 14:20, Ditto89 ([email protected]) escribió:

@Ditto89 https://github.com/Ditto89 look if your config file is complete, looks like you're using a older version without the cell number Please, can you point me the newer version? I thought I was using it already... — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#16 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AodUmJjDp7ZzH5vJrF5T5YGnb-mId_iDks5ug6BvgaJpZM4TLAXG .

It worked! Thanks!!!

Perhaps, do you have some script to extract the key from db.crypt12 file?

@fakurkr
Copy link

fakurkr commented Oct 21, 2018

Thank you!!!!

I managed to download my backup thanks to this post.

Unfortunately it was corrupted as the local one and it's no good, but that's another story.

Greetings

@anoureldin
Copy link

hello
i get this issue Error=BadAuthentication
i tried alot and email and pass is good

@YuriCosta
Copy link
Author

@anoureldin try the scrip I uploaded on my repository, it's working but you'll need the cellphone number too like it's written on the google drive "backups" section.

@hs25791
Copy link

hs25791 commented May 24, 2020

getting this error everytime:

C:\Users\Himanshu\Desktop\WhatsApp-GD-Extractor-master\WhatsApp-GD-Extractor-master>python WhatsAppGDExtract.py -info
issueAdvice=auto
Expiry=1590320417
ExpiresInDurationSec=3599
storeConsentRemotely=1
isTokenSnowballed=1
grantedScopes=https://www.googleapis.com/auth/drive.appdata https://www.googleapis.com/auth/drive.file
Auth=ya29.a0AfH6SMBgtKXzYqAkn6e36kVEXAMT_hhKZPFChNsKKvzsRSI7LZP2ecEaIpefG2rcXWESOsKWDCx8YBgh4FX1UlVd8pL7YqGZZakcXAaRGqHBFJXzeEzCz2l-1xyesHBaaKM077JLcm1yERBlpniwbMokwE1SCi96Vaw

any help pls

@YuriCosta
Copy link
Author

@hs25791 did you download the recent version?

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

10 participants