Skip to content

[GOWS] - Session disconnected automatically. #1806

@nishit321

Description

@nishit321

🐞 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

  1. Create a new WhatsApp session.
  2. Keep the session active for around 24 hours.
  3. 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.

patron:PLUS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions