Links com prévia não são entregues no WhatsApp (v2.4.0-rc2)
維護者通常 4 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 半天
- 新手友好度
- 53/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start at the POST /message/sendText/{instance} entry point and trace how linkPreview is handled for the Baileys channel. Compare the send path with linkPreview: true and false, including how preview metadata is generated for the reported URL. Done means messages with previews are delivered or a useful error is returned and logged; the payload names no files or tests.
由索引模型根據 Issue 內容生成。
描述
Welcome!
- Yes, I have searched for similar issues on GitHub and found none.
What did you do?
Atualizei a Evolution API da v2.3.7 para a 2.4.0-rc2 e, depois disso, mensagens de texto com link enviadas por POST /message/sendText/{instance} com linkPreview: true (padrão) deixaram de chegar ao destinatário.
Teste feito com duas chamadas idênticas, mudando só o linkPreview:
# 1) com prévia (não é entregue)
curl -X POST https://<servidor>/message/sendText/<instancia> \
-H "apikey: <chave>" -H "Content-Type: application/json" \
-d '{"number":"<destino>","text":"test https://solucoes.receita.fazenda.gov.br/Servicos/cnpjreva/","linkPreview":true}'
# 2) sem prévia (é entregue)
curl -X POST https://<servidor>/message/sendText/<instancia> \
-H "apikey: <chave>" -H "Content-Type: application/json" \
-d '{"number":"<destino>","text":"test https://solucoes.receita.fazenda.gov.br/Servicos/cnpjreva/","linkPreview":false}'
What did you expect?
Que a mensagem fosse entregue ao destinatário (com ou sem prévia do link), ou que um erro fosse retornado/registrado nos logs caso não fosse possível enviá-la.
What did you observe instead of what you expected?
As duas chamadas retornam o mesmo formato de resposta (status: "PENDING", messageType: "conversation"), sem erro.
- Com
"linkPreview": true: a mensagem nunca chega ao celular do destinatário. - Com
"linkPreview": false: a mensagem chega normalmente (print anexado).
Os logs do servidor não mostram nenhum ERROR/WARN relacionado ao envio. Mensagens sem link, mídias etc. continuam funcionando normalmente.
Verificação de rede: de dentro do container, um fetch() da mesma URL retorna HTTP 200 em ~1,1 s, então não parece problema de rede ou timeout.
Nos logs, o extendedTextMessage da mensagem com linkPreview: true não tem matchedText, title, description nem miniatura, ou seja, nenhum cartão de prévia foi gerado para essa URL.
Screenshots/Videos
Which version of the API are you using?
2.4.0-rc2 (imagem Docker evoapicloud/evolution-api:2.4.0-rc2; antes: v2.3.7)
What is your environment?
Linux
Other environment specifications
Docker Swarm (Portainer) em VPS, Postgres 15.8, Redis, canal Baileys (WhatsApp Web 2.3000.1051318246), integração com Chatwoot habilitada, licença ativada pelo manager.
If applicable, paste the log output
Envio com linkPreview:true (não entregue)
extendedTextMessage: {
(sem matchedText / title / description / thumbnail)
}
messageTimestamp: 1792692867
status: 1
Envio com linkPreview:false (entregue)
extendedTextMessage: {
(sem campos de prévia)
}
messageTimestamp: 1792692882
status: 1
Nenhuma linha ERROR/WARN relacionada ao envio.
Additional Notes
- Não sei se é regressão: não consegui testar a mesma URL na v2.3.7 depois da atualização.
- Contorno:
"linkPreview": false. Não encontrei como desativar a prévia para mensagens enviadas pela integração com o Chatwoot. - O restante (mensagens sem link, mídias, integração com Chatwoot) funciona normalmente na 2.4.0-rc2.
- 主要語言
- TypeScript
- 星號
- 10.2k
- 分支
- 7.5k
- 平均合併
- 6 天 19 小時
- 30 天內合併 PR
- 4
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
evolution-foundation/evolution-api 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
evolution-foundation/evolution-api#2796 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
evolution-foundation/evolution-api#2795 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
evolution-foundation/evolution-api#2782 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
evolution-foundation/evolution-api#2723 ·
維護者通常 4 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
evolution-foundation/evolution-api#2704 ·
維護者通常 4 天內回覆
查看 evolution-foundation/evolution-api 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
abhigyanpatwari/GitNexus#4124 ·
維護者通常 1 天內回覆
-
good first issue
難度 2/5 1-3 小時 新手友好度 72/100
laaielichter/Godotwright#250 ·
維護者通常 1 天內回覆
-
An Antigravity tab can quote an old Assist message as the owner's words in a resumed conversation未關閉
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
Retry an empty final answer when Gemini reports MALFORMED_RESPONSE (gemini-4-hydrogen)可能已有人在做 @waleedkadous 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
[Bug]: Manager UI logo fails to load — broken external URL可能已有人在做 @kavindu-udara 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 68/100