[BUG] getaddrinfo EAI_AGAIN host error on ChatwootService when updating message source ID (v2.3.7)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- docker, typescript
Research direction
Start by tracing the ChatwootService path that updates the message source ID and inspect how the configured Chatwoot URL becomes the hostname. Reproduce the update failure in the Docker Compose environment while checking the container logs and DNS behavior. Done means the request uses the configured Chatwoot hostname instead of the literal "host" and messages no longer appear as failed in Chatwoot.
Written by the indexing model from the issue text.
Description
Describe the bug When sending messages through an instance integrated with Chatwoot, the Evolution API intermittently fails to update the message source ID back to Chatwoot, throwing a DNS resolution error where the hostname being resolved is literally the string "host" instead of the actual configured Chatwoot URL.
Error log
[ChatwootService] Error updating Chatwoot message source ID: Error: getaddrinfo EAI_AGAIN host
To Reproduce Configure an instance with Chatwoot integration (valid URL, account ID, and token confirmed correct in Evolution Manager); send messages through WhatsApp normally; observe that messages are delivered successfully on WhatsApp, but Chatwoot occasionally shows "Falha ao enviar" (Failed to send) status on messages, including on internal system messages such as "Connection successfully established!"; check evolution-api container logs around the time of failure.
Expected behavior The Chatwoot message source ID update should use the actual configured Chatwoot base URL/hostname, not a literal placeholder string "host".
Environment Evolution API version: v2.3.7 (Docker image evoapicloud/evolution-api:v2.3.7); deployment: Docker Compose via Dokploy; database: PostgreSQL 15; cache: Redis 7; Chatwoot integration enabled with valid URL, account ID and token (confirmed correct in Manager UI).
Additional context Manually tested DNS resolution inside the container: getent hosts chatwoot resolves correctly to the internal Docker network IP; getent hosts host fails to resolve (as expected, since "host" is not a valid hostname), confirming the container's DNS/networking is healthy and the issue is isolated to this specific code path using a literal "host" string instead of the configured variable.
Impact Message delivery itself is not affected (messages reach WhatsApp normally), but Chatwoot UI incorrectly displays messages as failed, causing confusion for support agents.
Pode copiar esse texto direto para o campo de nova Issue no GitHub. Se quiser, também posso ajudar a montar os prints e o trecho do log como anexos para reforçar o relato.
- Dominant language
- TypeScript
- Stars
- 9.6k
- Forks
- 7.3k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from evolution-foundation/evolution-api
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
evolution-foundation/evolution-api#2700 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in evolution-foundation/evolution-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·