pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.21k stars 3.63k forks source link

forgets all staff in my variables when chromium crashes: how to is solve this ? #1436

Closed Tina4545 closed 10 months ago

Tina4545 commented 2 years ago

Is there an existing issue for this?

Describe the bug

hi I recently tried to copy the code on the example on GitHub but my WhatsApp forgets all the chats soon after the server is restated and all the staff in my variables will be emptied .. is there any way of solving this issue

Expected behavior

remember all the chats and not to start again

Steps to Reproduce the Bug or Issue

wait a few hours and the broswer will stop and crash but at least it should restore all chats browser

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

windows whatsapp we js node js dsdsdsd sdsds sd

Additional context

sdsd

luiscuriel commented 2 years ago

Same here... after a while my chromium crashes and the session gets lost...very frustrating

jtouris commented 2 years ago

Hello, please take a look at https://github.com/pedroslopez/whatsapp-web.js/pull/1450

Pretty sure RemoteAuth will solve this issue as it will be able to store sessions in remote databases & restore them appropriately