Closed MinosIE closed 11 months ago
I agree, this piece of code was an erroneous revision. I wrote about this earlier.
Since PARING can hang all night and then, as the phone is online, it will connect.
@tofers I'm not sure if it will effect the normal logout
If the client has enabled sleep on the phone, then as a result this session will not connect and will fall out in auth_failure
thx. also have this issue after some client got internet problem or disconnect for awhile then the client on chromium cannot reconnect until chromium get aw snap. using your trick delete await this.destroy(); working for me.
@MinosIE I did this fix, in some cases, it indeed worked and after CONNECTED the bot continue to work properly, but in 1 bot, after CONNECTED it just stuck. Is there anything to do, except resetting the bot?
@MinosIE Thank you so much, removing the await this.destroy(); did the trick for me too, btw i was facing the problem with the non multi device, so the problem happens in both versions (multi & non multi).
Hi, is this issue fixed in the latest release version 1.16.7?
I'll be rectifying this entire area soon.
outdated
Is there an existing issue for this?
Describe the bug
v1.16.6 after a few seconds of successful login, It is change state to OPENING and PAIRING then trigger disconnected with NAVIGATION. By analyzing the source code in Client.js , I found this:
when I remove
await this.destroy();
It works after disconnected, it trigger change state to CONNECTEDExpected behavior
login success
Steps to Reproduce the Bug or Issue
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
OS: Mac, Windows, Phone OS: Android whatsapp-web.js version:2.21.24.22 WhatsApp Web version: 2.2214.12 Node.js Version: v16.7.0
Additional context
No response