openclaw - 💡(How to fix) Fix [Bug]: WhatsApp links successfully, but peers/groups discovery is empty and the gateway reconnects repeatedly with status 499 [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#61744Fetched 2026-04-08 02:55:04
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

After linking WhatsApp successfully in OpenClaw, the channel appears configured and connects, but WhatsApp discovery is not usable: openclaw directory peers list --channel whatsapp only returns self, openclaw directory groups list --channel whatsapp returns no groups, and the gateway repeatedly disconnects/reconnects with status 499.

Root Cause

After linking WhatsApp successfully in OpenClaw, the channel appears configured and connects, but WhatsApp discovery is not usable: openclaw directory peers list --channel whatsapp only returns self, openclaw directory groups list --channel whatsapp returns no groups, and the gateway repeatedly disconnects/reconnects with status 499.

Code Example

Observed evidence:

WhatsApp linked successfully via QR during openclaw configure.
Status output showed WhatsApp as configured and linked.
openclaw directory peers list --channel whatsapp returned only self.
openclaw directory groups list --channel whatsapp returned No groups found.
This remained unchanged after waiting for sync and after generating activity in a non-sensitive test group.
Gateway/system events repeatedly showed:

WhatsApp gateway disconnected (status 499)
WhatsApp gateway connected
Inspecting the local WhatsApp session JSON did not reveal recent chats/groups/contact metadata.
Inspecting the installed runtime code suggests the WhatsApp runtime internally handles values such as remoteJid, groupSubject, and groupParticipants, so the runtime may know more than the current CLI exposes.
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

After linking WhatsApp successfully in OpenClaw, the channel appears configured and connects, but WhatsApp discovery is not usable: openclaw directory peers list --channel whatsapp only returns self, openclaw directory groups list --channel whatsapp returns no groups, and the gateway repeatedly disconnects/reconnects with status 499.

Steps to reproduce

Steps to reproduce

Run OpenClaw 2026.3.28 (f9b1079) in Docker. Link WhatsApp successfully via openclaw configure and complete QR pairing. Verify the channel is configured/linked. Run:

openclaw directory peers list --channel whatsapp openclaw directory groups list --channel whatsapp Observe that peers only shows self and groups returns no groups. Observe repeated gateway events:

WhatsApp gateway disconnected (status 499) WhatsApp gateway connected

Expected behavior

After successful WhatsApp linking, OpenClaw should expose usable WhatsApp discovery information (for example recent peers and/or groups) or document a supported alternative way to discover chats/groups/JIDs, and the WhatsApp gateway should remain stable without repeated disconnect/reconnect loops.

Actual behavior

WhatsApp links successfully, but directory peers only returns self, directory groups returns no groups, and the gateway repeatedly disconnects/reconnects with status 499.

OpenClaw version

2026.3.28 (f9b1079)

Operating system

Ubuntu 24.04.4 LTS (host) / Docker container running OpenClaw

Install method

Docker (ghcr.io/hostinger/hvps-openclaw:latest)

Model

openai-codex/gpt-5.4

Provider / routing chain

Not relevant for this issue (WhatsApp channel behavior)

Additional provider/model setup details

I also inspected the installed runtime and it appears the WhatsApp implementation internally handles values such as remoteJid, groupSubject, groupParticipants, and group metadata, so it looks like the runtime may know more than the current CLI exposes.

Logs, screenshots, and evidence

Observed evidence:

WhatsApp linked successfully via QR during openclaw configure.
Status output showed WhatsApp as configured and linked.
openclaw directory peers list --channel whatsapp returned only self.
openclaw directory groups list --channel whatsapp returned No groups found.
This remained unchanged after waiting for sync and after generating activity in a non-sensitive test group.
Gateway/system events repeatedly showed:

WhatsApp gateway disconnected (status 499)
WhatsApp gateway connected
Inspecting the local WhatsApp session JSON did not reveal recent chats/groups/contact metadata.
Inspecting the installed runtime code suggests the WhatsApp runtime internally handles values such as remoteJid, groupSubject, and groupParticipants, so the runtime may know more than the current CLI exposes.

Impact and severity

Affected: OpenClaw users relying on the WhatsApp channel for operational use after successful linking Severity: Medium-High (channel links successfully but practical discovery/send workflows are blocked or significantly degraded) Frequency: Always observed for peers/groups discovery; reconnect loop observed repeatedly at roughly 1-minute intervals Consequence: Users cannot reliably discover recent contacts/groups from the CLI, cannot easily resolve chat/group targets for operational workflows, and repeated reconnects may reduce confidence in channel stability

Additional information

This is especially impactful for workflows that depend on reading recent WhatsApp group context or sending to known chats without manually recovering raw JIDs.

extent analysis

TL;DR

The WhatsApp gateway's repeated disconnections and inability to retrieve peers or groups may be due to an incomplete or faulty implementation of WhatsApp discovery in the OpenClaw CLI, which can be mitigated by exploring alternative methods to access WhatsApp metadata.

Guidance

  • Investigate the OpenClaw runtime code to understand how it handles WhatsApp metadata, such as remoteJid, groupSubject, and groupParticipants, to determine if this information can be exposed through the CLI or an alternative interface.
  • Review the WhatsApp session JSON to see if it contains any useful metadata that can be leveraged for discovery, even if it's not currently exposed through the CLI.
  • Consider filing a feature request or bug report with the OpenClaw developers to improve the WhatsApp channel's discovery capabilities and stability.
  • Look into potential workarounds, such as using a different WhatsApp client or library that provides more comprehensive discovery features, although this may require significant changes to the existing workflow.

Example

No code example is provided due to the lack of specific implementation details in the issue.

Notes

The root cause of the issue is unclear, but it appears to be related to the OpenClaw CLI's implementation of WhatsApp discovery. The repeated disconnections may be a symptom of a larger issue with the WhatsApp gateway's stability.

Recommendation

Apply workaround: Given the current limitations of the OpenClaw CLI, exploring alternative methods to access WhatsApp metadata, such as using a different client or library, may be the most viable solution to mitigate the impact of this issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

After successful WhatsApp linking, OpenClaw should expose usable WhatsApp discovery information (for example recent peers and/or groups) or document a supported alternative way to discover chats/groups/JIDs, and the WhatsApp gateway should remain stable without repeated disconnect/reconnect loops.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING