Skip to content

[BUG] sendMedia Issue: Image fails to load on mobile app #2056

@Legionariocf

Description

@Legionariocf

Welcome!

  • Yes, I have searched for similar issues on GitHub and found none.

What did you do?

I made an API call to the message/sendMedia endpoint to send an image to a WhatsApp number.

I performed the following tests to reproduce the issue:

  1. Sending via URL: I used a public image URL in the media field.
  2. Sending via Base64: I converted the same image to a Base64 string (optimized to ~30KB) and used it in the media field.

Both tests were executed in two different ways:

  • Through an automation on the n8n platform.
  • Directly from the official API documentation's Playground.

The result was the same in all attempts.

My API instance is: https://evolution.legionariocf.site

Em português: Executei uma chamada para a API no endpoint message/sendMedia para enviar uma imagem para um número de WhatsApp.

Realizei os seguintes testes para reproduzir o erro:

  1. Envio via URL: Utilizei uma URL pública de uma imagem no campo media.
  2. Envio via Base64: Converti a mesma imagem para Base64 (com tamanho reduzido para ~30KB) e a utilizei no campo media.

Ambos os testes foram executados de duas maneiras diferentes:

  • Através de uma automação na plataforma n8n.
  • Diretamente pelo Playground da documentação oficial da API.

Em todos os casos, o resultado foi o mesmo.

Minha instância da API é: https://evolution.legionariocf.site

What did you expect?

I expected the image message to be delivered and displayed correctly on the WhatsApp mobile app (both Android and iOS), allowing the recipient to view and download the file.

The expected behavior was for the image to work on the mobile app just as it already works perfectly on WhatsApp Desktop and WhatsApp Web.

Em português: Eu esperava que a mensagem com a imagem fosse entregue e exibida corretamente no aplicativo do WhatsApp no celular (Android/iOS), permitindo que o destinatário visualizasse e baixasse o arquivo.

O comportamento esperado era que a imagem funcionasse no celular da mesma forma que já funciona perfeitamente no WhatsApp Desktop e no WhatsApp Web.

What did you observe instead of what you expected?

The message arrives on the recipient's mobile phone, but the image fails to load.

On the WhatsApp app (for both Android and iOS), the message bubble displays the placeholder "Waiting for this message..." and never shows the image.

However, the exact same message, when viewed on WhatsApp Desktop or WhatsApp Web, displays the image correctly and without delay. The issue is exclusive to the mobile apps.

Em português: A mensagem chega ao celular do destinatário, mas a imagem não carrega.

No aplicativo do WhatsApp (tanto em Android quanto em iOS), o balão da mensagem exibe o aviso "Aguardando mensagem..." e nunca mostra a imagem.

No entanto, a mesma mensagem, quando visualizada no WhatsApp Desktop ou no WhatsApp Web, exibe a imagem corretamente e sem atrasos. O problema é exclusivo dos aplicativos móveis.

Screenshots/Videos

Image
Image

Which version of the API are you using?

Client name: evolution
Version: 2.3.4

What is your environment?

Docker

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions