Skip to content

[Bug]: WhatsApp listener repeatedly disconnects/stalls on Windows, causing "No active WhatsApp Web listener" and missed messages #70856

@Kanorin-chan

Description

@Kanorin-chan

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Environment

  • OpenClaw version: 2026.4.15 (041266a)
  • OS: Windows
  • Install method: npm global install
  • Gateway service: Scheduled Task
  • State dir: C:\Users\Wapapapow\.openclaw
  • Workspace: F:\openclaw\workspace
  • Gateway bind: loopback (127.0.0.1:18789)
  • Model/provider in use: Z.AI (glm-4.7, glm-5.1)

Problem

WhatsApp disconnects and reconnects frequently, and OpenClaw often misses messages or cannot send because the WhatsApp listener is not active.

What I already tested

  • Re-paired WhatsApp multiple times
  • Set discovery.mdns.mode: "off"
  • Set web.reconnect.maxAttempts: 0
  • Stable LAN, no VPN
  • openclaw doctor --fix many times
  • Same Z.AI models are fast in Claude Code, so the provider itself does not seem to be the root cause

Symptoms

  • Frequent reconnects
  • Missed inbound messages
  • Outbound send failures
  • Cron/message delivery failures with:
    • No active WhatsApp Web listener (account: default)

Relevant logs

text
21:41:51 [whatsapp] Web connection closed (status 408). Retry 1/∞ in 2.17s… (status=408 Request Time-out Connection was lost)
21:41:54 [whatsapp] Listening for personal WhatsApp inbound messages.

21:54:37 [whatsapp] Web connection closed (status 428). Retry 1/∞ in 2.07s… (status=428 Precondition Required Connection Terminated)
21:54:55 [whatsapp] Listening for personal WhatsApp inbound messages.

22:28:02 [whatsapp] Web connection closed (status 428). Retry 1/∞ in 2.21s… (status=428 Precondition Required Connection Terminated)
22:29:20 [health-monitor] [whatsapp:default] health-monitor: restarting (reason: disconnected)
22:29:21 [whatsapp] [default] starting provider (+xxxx)
22:29:24 [whatsapp] Listening for personal WhatsApp inbound messages.

23:00:04 [whatsapp] No messages received in 30m - restarting connection
23:00:04 [whatsapp] Web connection closed (status 499). Retry 1/∞ in 2.23s… (status=499)
23:03:13 [health-monitor] [whatsapp:default] health-monitor: restarting (reason: disconnected)
23:03:25 [whatsapp] [default] channel stop exceeded 5000ms after abort; continuing shutdown
23:03:35 [whatsapp] Listening for personal WhatsApp inbound messages.
23:03:35 [whatsapp] Failed hydrating participating groups on connect: 1006

23:05:23 [cron:28301bd9-8059-44b5-b4b7-7cd247a34a14] transient direct announce delivery failure, retrying 2/4 in 5s: No active WhatsApp Web listener (account: default). Start the gateway, then link WhatsApp with: openclaw channels login --channel whatsapp --account default.

00:37:05 [tools] message failed: Error: No active WhatsApp Web listener (account: default). Start the gateway, then link WhatsApp with: openclaw channels login --channel whatsapp --account default.

Notes

The generic “link WhatsApp again” suggestion does not seem to be the actual fix here, because the account is already linked and the listener sometimes reconnects successfully before dying again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions