Links com prévia não são entregues no WhatsApp (v2.4.0-rc2)
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 53/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 10.2k
- Fork
- 7.5k
- Merge trung bình
- 6 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của evolution-foundation/evolution-api
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
evolution-foundation/evolution-api#2796 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
evolution-foundation/evolution-api#2795 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
evolution-foundation/evolution-api#2782 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
evolution-foundation/evolution-api#2723 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
evolution-foundation/evolution-api#2704 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của evolution-foundation/evolution-api
Issue tương tự
-
[Bug]: Manager UI logo fails to load — broken external URLCó thể đã có người làm @kavindu-udara đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
excalidraw/excalidraw#12743 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: cli priority: P2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
appandflow/stim#6381 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ui-kit type: chore
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
schlessera/brain-kit#4598 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue spec
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100