Open
Description
Is there an existing issue for this?
- I have searched the existing issues.
Is this a problem caused by your code, or is it specifically because of the library?
- I have double-checked my code carefully.
Describe the bug.
I'm using remote auth, and it seems sometimes the remote auth cache becomes corrupted.
The symptoms are:
- It doesn't receive any new message
- The phone receives the new messages.
- It can send out a message into the same chat (that it didn't receive a message). In my system, there's an HTTP endpoint that allows me to send a message.
chat.fetchMessages
doesn't return any new message- It can star and unstar the messages just fine (This is our healthcheck mechanism ... to check that the system is still working).
- If I create a new group, it still doesn't receive a new message from the new group.
If I delete the remote auth cache and pair it again, then everything will start working again. I suspect that the cache might fall into a partially corrupted state somehow.
I wonder if there's anything I can do to debug more... or if there's a way to delete message cache without requiring a new pairing.
Thank you.
Expected Behavior
It should receive new messages
Steps to Reproduce the Bug or Issue
Difficult to reproduce. It happens some of the times
WhatsApp Account Type
Standard
Browser Type
Chromium
Operation System Type
Docker + Linux
Phone OS Type
Android
WhatsApp-Web.js Version
v1.27.0
WhatsApp Web Version
Node.js Version
v22.11.0
Authentication Strategy
RemoteAuth
Additional Context
No response