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.
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.
Most helpful comment
thanks @janke184, work for me.
I implemented this way
in file webwhatsapi__init__.py
change the function
set_local_storagedef 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()]))