Skip to content

Frequent session disconnections every 5–10 minutes after months of stable usage (no errors in logs) #123

@cashmaal

Description

@cashmaal

Hi,

I am experiencing frequent session disconnections every 5–10 minutes.

Environment:

  • Using Docker (custom patched image with timothydillan fix)
  • Based on: avoylenko/wwebjs-api:edge
  • whatsapp-web.js version: 1.34.3 (patched fork)
  • VPS with sufficient resources (2GB+ RAM, shm-size configured)

Issue:

  • The session was stable for 2–3 months without any disconnections
  • Suddenly, starting today, the session disconnects every 5–10 minutes
  • No major errors appear in logs
  • Only normal logs like:
    • net::ERR_ABORTED
    • net::ERR_BLOCKED_BY_RESPONSE
    • telemetry requests failing

Behavior:

  • Session reconnects automatically
  • No QR required again
  • But keeps disconnecting repeatedly

What I tried:

  • Restarting container
  • Increasing memory and shm-size
  • Using patched whatsapp-web.js (duplicate-events fix)
  • Adjusting .env config (no forced WEB_VERSION, webhook enabled, etc.)

Question:
Is this caused by recent WhatsApp Web changes or session invalidation?
Any recommended fix or workaround to stabilize the session?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions