[BUG] GET /group/participants/{instance} returns 500 'Cannot convert undefined or null to object' on v2.4.0
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
The issue is in the group participants endpoint. Look at the route handler for GET /group/participants/{instance} in the codebase, likely in a group-related controller or service file. Examine how participant data from Baileys (version 7.0.0-rc14) is processed, especially for groups with LID-only JIDs. Check for any null/undefined checks on the participant data object before operations like Object.keys() or mapping. The fix involves handling the case where participant data might be null or undefined, possibly returning an empty list or a specific error message.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
The GET /group/participants/{instance}?groupJid={jid} endpoint returns a 500 Internal Server Error with "Cannot convert undefined or null to object" on Evolution API v2.4.0 (Baileys 7.0.0-rc14), even when:
- The instance is connected (
connectionStatereturns{"state": "open"}) - The group exists and has 81 participants (verified via direct DB sync)
- The same groupJid works with other group endpoints (metadata sync works fine)
Steps to reproduce
- Connect an instance (state: open)
- Have a WhatsApp group with participants (in our case: 81 participants, all
@lidJIDs) - Call
GET /group/participants/{instance}[email protected]
Expected behavior
Return the list of participants with their roles.
Actual behavior
{
"status": 500,
"error": "Internal Server Error",
"response": {
"message": "Cannot convert undefined or null to object"
}
}
Same error on GET /group/findGroupInfos/{instance}?groupJid=... and GET /group/fetchAllGroups/{instance}.
Environment
- Evolution API version: 2.4.0
- Baileys version: 7.0.0-rc14
- Docker deployment
- Instance state: open (verified)
- Group has 81 participants, all @lid JIDs (WhatsApp LID privacy feature)
Additional context
The group participant sync works via a separate internal path (cron job), so the group data IS accessible. The on-demand REST endpoint specifically fails. This may be related to how Baileys 7.0.0-rc14 handles LID-only group metadata (no PN JIDs available for participants).
Not sure if this is a Baileys upstream issue or an Evolution API mapping problem, but the error Cannot convert undefined or null to object suggests the code is trying to process participant data that came back as null/undefined from Baileys.
- Lingua principale
- TypeScript
- Stelle
- 9.6k
- Fork
- 7.3k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di evolution-foundation/evolution-api
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
evolution-foundation/evolution-api#2723 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
evolution-foundation/evolution-api#2704 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
evolution-foundation/evolution-api#2702 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
evolution-foundation/evolution-api#2700 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
evolution-foundation/evolution-api#2675 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di evolution-foundation/evolution-api
Issue simili
-
module-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
ports get and web print 'Port N already in use, trying next...' for every busy port they skipAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
appandflow/stim#1604 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
lingdojo/kana-dojo#31060 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
SSH workspace restore rewrites relative symlinks into the deleted sync-back staging directoryAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
paperclipai/paperclip#14173 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno