whatsapp-api icon indicating copy to clipboard operation
whatsapp-api copied to clipboard

Session behaviour is broken

Open andrew-belyi opened this issue 1 year ago • 1 comments

I'm facing with strange behaviour of session. In my application I 'm authorizing via QR code to add new device, from this moment till some unpredictable time it's working fine. But at some moment seems like some logout happening, I still receive messages from groups, but send message function is not working as it should (in response I receive "success", like message was sent, but IRL message doesn't appear in group). After I check session status, I receive session_not_connected (how am I receiving messages then??). After I destroy old session and log in again for new one it start to work fine. I would be grateful for help or advice.

andrew-belyi avatar May 20 '24 08:05 andrew-belyi

Looks like this issue is realted from whatsapp-web.js https://github.com/pedroslopez/whatsapp-web.js/issues/2654

I'm testing how it will work when I initilaize session reset each one hour to make session active. My application just receive messages from list of groups and send messages to one group, but for some reason sendMessage doesn't trigger reactivation of sesssion. So when I authecticate via qr code, in linked devices screen it shows last activity time the time when I authorized session, and I feel like session is destroyed after some time of "inactivity"

andrew-belyi avatar Jun 06 '24 06:06 andrew-belyi