orkestral / venom

Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media sending, sentence recognition based on artificial intelligence and all types of design architecture for WhatsApp.
https://orkestral.io
Apache License 2.0
6.13k stars 1.21k forks source link

Session is not restored after restart #1633

Closed luiscuriel closed 2 years ago

luiscuriel commented 2 years ago

Description

I run venom, scan QR, whatsapp launches correctly. Then I close whatsapp, launch venom again, and it asks for QR evey time

jesusvalverde commented 2 years ago

Same here, I do delete the token folder and after 3-4 or maybe more it stays..

tomanotomano commented 2 years ago

Hello, We have the same problem. Token is not being created, using Whatsupp Bussines or Not. QR is always asked

Nos pasa lo mismo, no se crea el token, siempre pide el QR para volverse a loguear. Usando Whats Bussines o no

jesusvalverde commented 2 years ago

also with multi device or not..

jesusvalverde commented 2 years ago

same as ? https://github.com/orkestral/venom/issues/1631

jonalan7 commented 2 years ago

This problem may be due to the replacement of the project's original Args! Putting new information in browserArgs If you are using this option, use the addBrowserArgs option

image

https://github.com/orkestral/venom#optional-create-parameters

vielhuber commented 2 years ago

This issue persists. I don't pass anything to "browserArgs" or "addBrowserArgs".

Also in the "tokens" folder there are a lot of files, but no json token files stored.

jonalan7 commented 2 years ago

On the multiple device, it no longer creates just a Json file, it creates a folder with several files! Use in venom options:

multidevice: true

image

If the folders do not automatically create in your project, it must be a permission problem! Review your project, as the token folders must be created, if this does not happen, the session will not be returned! I tested it here and it worked perfectly!

If by a miracle your whatsapp does not have the multideevice version, just put it in the venom options:

multidevice: false

vielhuber commented 2 years ago

Yes, that's correct, but:

"venom-bot": "https://github.com/orkestral/venom/releases/download/nightly/venom-bot-nightly.tgz"

multidevice: true, headless: true

Creates a folder: image But every time I reconnect, QR code is shown again.

And if I set:

multidevice: true, headless: false the session is saved and restored, also the folder content is much bigger: image

Any clues about that?

Ramstin13 commented 2 years ago

On the multiple device, it no longer creates just a Json file, it creates a folder with several files! Use in venom options:

multidevice: true

image

If the folders do not automatically create in your project, it must be a permission problem! Review your project, as the token folders must be created, if this does not happen, the session will not be returned! I tested it here and it worked perfectly!

If by a miracle your whatsapp does not have the multideevice version, just put it in the venom options:

multidevice: false

hey jonalan,

how can i check if there is a permission problem?

i am using multidevice: true i don't see any tokens folder.

diogolimas commented 2 years ago

Did you solve it? @luiscuriel Can you share if you did it?

matbks commented 2 years ago

My problem is similar, after restarting my session connects but wont work.

Then i have to delete tokens folder or use a new name for the session on create fucnction.

FelipeVeiga commented 2 years ago

same here