waha icon indicating copy to clipboard operation
waha copied to clipboard

Bug: Some WhatsApp groups return empty / incomplete metadata via Groups API (persistent issue)

Open hananah opened this issue 11 months ago • 9 comments

Describe the bug:

When retrieving WhatsApp groups using the WAHA API, a subset of groups consistently returns incomplete or empty metadata (missing subject, creation, owner info, etc.), even though these groups are active and sending messages.

  • This causes serious issues when handling incoming webhook messages, as the group cannot be reliably identified beyond its group ID.
  • The issue is persistent, affects multiple sessions and phone numbers, and reappears even after refresh or temporary workarounds.

Version { "version": "2025.12.2", "engine": "GOWS / NOWEB", "tier": "PLUS" }

Observed consistently from 2025.8.2 up to 2025.12.2 Plus, on both engines.

Environment

Multiple WhatsApp phone numbers

Multiple WAHA sessions

Paid PRO Plus

Engines tested: GOWS and NOWEB

Steps to Reproduce

Start a WAHA session.

Call:

GET /api/{session}/groups

The total number of groups is returned correctly (e.g. ~145 groups).

~20 groups return partial / empty data, for example:

"[email protected]": { "id": "[email protected]", "addressingMode": "pn", "subjectTime": null, "size": 814, "creation": null, "restrict": false, "announce": false, "isCommunity": false, "isCommunityAnnounce": false, "joinApprovalMode": false, "memberAddMode": false }

A correctly returned group looks like this:

"[email protected]": { "id": "[email protected]", "addressingMode": "lid", "subject": "🟠️Family Group🟠", "subjectOwner": "78714044337113@lid", "subjectOwnerPn": "[email protected]", "subjectTime": 1755905565, "size": 16, "creation": 1755905565, "owner": "78714044337113@lid", "ownerPn": "[email protected]", "owner_country_code": "SA", "restrict": true, "announce": true, "isCommunity": false, "isCommunityAnnounce": false, "joinApprovalMode": false, "memberAddMode": true, "ephemeralDuration": 0 }

When a message arrives from a problematic group via webhook, only the group ID is available. Fetching the group directly: GET /api/{session}/groups/{id} still returns incomplete data:

{ "id": "[email protected]", "addressingMode": "pn", "subjectTime": null, "size": 899, "creation": null, "restrict": false, "announce": false, "isCommunity": false, "isCommunityAnnounce": false, "joinApprovalMode": false, "memberAddMode": false }

Attempted Workarounds

1. Refresh Groups Tried forcing a refresh using: POST /api/{session}/groups/refresh Response: { "success": true } ❌ Result: No change. The same groups still return empty / incomplete metadata.

2. Remove & Re-add Bot to Group

  • Temporarily fixes the issue for 2–3 days
  • The problem always returns
  • Sometimes affects the same group
  • Sometimes affects different groups

This is not a viable long-term solution.

Expected Behavior

All groups returned by: GET /api/{session}/groups GET /api/{session}/groups/{id}

should always return complete and consistent metadata, especially for: Active groups Groups sending messages via webhook At minimum:

  • subject
  • creation
  • subjectTime
  • owner / ownerPn
  • Actual Behavior

A subset of groups returns incomplete metadata indefinitely Group refresh reports success but does nothing

Issue occurs across:

  • Multiple sessions
  • Multiple phone numbers
  • Both engines (GOWS / NOWEB)
  • Breaks webhook-based automation and group identification
  • Additional Notes / Suspicions

This looks like: Group metadata desynchronization Or internal cache/state corruption that never fully refreshes

Additional Observation

In groups affected by this issue (groups with incomplete metadata), administrative actions are also impacted. Specifically, attempting to delete a message sent by another group member fails only in these problematic groups.
The same delete operation works correctly in groups where full metadata is returned. This suggests that the issue is not limited to missing group metadata, but also affects group permissions / state synchronization for those groups.

Image Image Image Image

Questions

  • Is this a known issue with WAHA + WhatsApp MD?

  • Is there a way to force a full group metadata re-sync (beyond /groups/refresh)?

  • Is there an internal cache that can be reset per session?

  • Is this related to large groups or WhatsApp-side limitations?

  • A permanent fix is required — current workarounds are not reliable.

patron:PLUS

hananah avatar Dec 30 '25 22:12 hananah

Can Any one Assist with my problem..? @devlikepro

patron:PLUS

hananah avatar Jan 04 '26 08:01 hananah

Does it happen in both NOWEB and GOWS, right? When the group has been created, like how many years ago or month?

patron:PRO

devlikepro avatar Jan 09 '26 06:01 devlikepro

Does it happen in both NOWEB and GOWS, right? When the group has been created, like how many years ago or month?

patron:PRO

Yes the Problem comes in Both Engine, And some of the Group OLD and some New. But if i Remove the number from the group and Add Again it is work Fine for (1-3) Days Then Come Back again the Problem. NOTE: I Have More than 100 Groups in same Number and session.

patron:PLUS

hananah avatar Jan 09 '26 08:01 hananah

Please Can You Assist me in my problem..? @devlikeapro/waha-patrons-advanced @devlikepro

patron:PLUS

hananah avatar Jan 13 '26 19:01 hananah

I'm having the same problem. I'm running 40 sessions, and 39 of them don't have group information, while only 1 session does. Is there a way to fix this? @devlikepro

patron:PLUS

hsxonz avatar Jan 18 '26 16:01 hsxonz

having similar issue, one session, just returning []

[18:54:51.858] INFO (42): request completed {"reqId":765,"req":{"id":765,"method":"GET","url":"/api/default/groups","query":{},"params":{"path":["api","default","groups"]}},"res":{"statusCode":200},"responseTime":68}

chaoranxie avatar Jan 28 '26 19:01 chaoranxie

@devlikepro Im having the same issue is there any update for this feature? (pretty please :) )

Yidan420 avatar Mar 19 '26 07:03 Yidan420

+1

patron:PLUS

theeusmartins avatar Apr 17 '26 04:04 theeusmartins

+1

patron:PLUS

TheOneironaut avatar Apr 21 '26 18:04 TheOneironaut