-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
🐞 Bug: WhatsApp Session Automatically Disconnects After 1 Day
Description
One of our customer sessions is getting automatically disconnected after approximately one day of activity. This happens without any manual logout or action from the user.
🧩 Environment
- Engine: GOWS
- Version:
2026.1.1 PLUS - Container:
waha-1 - Webhook URL:
🔄 Steps to Reproduce
- Create a new WhatsApp session.
- Keep the session active for around 24 hours.
- Observe that the session logs out automatically without user interaction.
❗ Expected Behavior
The WhatsApp session should remain connected indefinitely unless the user explicitly logs out or the device is removed manually.
🚫 Actual Behavior
The session is logged out automatically with the following logs:
{"level":40,"time":1768287729788,"engine":"gows","msg":"[Session/session_MORENAVALLARIN_1768254612856/Client] Received stream end frame"}
{"level":50,"time":1768287729789,"session":"session_MORENAVALLARIN_1768254612856","name":"WhatsappSession","msg":"Logged out"}
{"level":30,"time":1768287729788,"engine":"gows","msg":"[Session/session_MORENAVALLARIN_1768254612856/Client] Got device removed stream error, sending LoggedOut event and deleting session"}
{"level":30,"time":1768287729789,"session":"session_MORENAVALLARIN_1768254612856","name":"WebhookSender","event":"session.status","msg":"Sending POST..."}
{"level":30,"time":1768287729794,"session":"session_MORENAVALLARIN_1768254612856","name":"WebhookSender","msg":"POST request was sent with status code: 200"}
{"level":50,"time":1768287729927,"engine":"gows","msg":"[Session/session_MORENAVALLARIN_1768254612856/Client/Socket] Error reading from websocket: failed to get reader: failed to read frame header: EOF"}
{"level":40,"time":1768287738297,"engine":"gows","msg":"[Session/session_MartaGiavazziOsteopata_1768244379030/Client] Error decrypting message ... failed to decrypt group message: no sender key"}
📝 Additional Notes
- This issue impacts live customers and disrupts message delivery.
- It appears related to a “device removed stream error” or websocket EOF handling.
🙏 Request
Could you please investigate why the session is being marked as device removed and automatically logged out after 24 hours, and advise on a fix or workaround?
Thank you.