Webwhatsapp-wrapper: Impossible to restore whatsapp from localstorage

Created on 19 Nov 2020  路  10Comments  路  Source: mukulhase/WebWhatsapp-Wrapper

Hi everyone!

From today we are having problems restoring the WhatsApp sessions from the localstorage.

The session begins by displaying the progress bar but ends by displaying the QR code.

Is the same thing happening to someone?

Thanks and regards.

Most helpful comment

thanks @janke184, work for me.
I implemented this way
in file webwhatsapi__init__.py
change the function set_local_storage

def set_local_storage(self, data): self.driver.execute_script('indexedDB.deleteDatabase(\'wawc\');'.join(["window.localStorage.setItem('{}', '{}');".format(k, v.replace("\n","\\n") if isinstance(v, str) else v) for k, v in data.items()]))

All 10 comments

same here
someone have the solution?

@janke184 did you find any solution?

Hi!

Yes, we have found the solution.

You need to remove the indexedDB before pasting the localstorage.

Javascript:

indexedDB.deleteDatabase ('wawc');

I hope that this solutions works you too.

Regards.

Thank you @janke184 , let's try it here.

Hi!

Yes, we have found the solution.

You need to remove the indexedDB before pasting the localstorage.

Javascript:

indexedDB.deleteDatabase ('wawc');

I hope that this solutions works you too.

Regards.

It worked here, thank you man!! :)

Hi!

Yes, we have found the solution.

You need to remove the indexedDB before pasting the localstorage.

Javascript:

indexedDB.deleteDatabase ('wawc');

I hope that this solutions works you too.

Regards.

It worked here too, thank you man!! :)

thanks @janke184, work for me.
I implemented this way
in file webwhatsapi__init__.py
change the function set_local_storage

def set_local_storage(self, data): self.driver.execute_script('indexedDB.deleteDatabase(\'wawc\');'.join(["window.localStorage.setItem('{}', '{}');".format(k, v.replace("\n","\\n") if isinstance(v, str) else v) for k, v in data.items()]))

Thanks, it worked for me!

thanks @janke184 its work for me

Thx @andreashp for the complete function code, everything works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wallysonn picture wallysonn  路  3Comments

kashif-raza picture kashif-raza  路  5Comments

mhndm picture mhndm  路  3Comments

alfred82santa picture alfred82santa  路  5Comments

FeezyHendrix picture FeezyHendrix  路  3Comments