evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

Unable to Send Message — Request Hangs Indefinitely on Localhost

Open Caous opened this issue 7 months ago • 4 comments

Hi team, I'm running Evolution API locally for the first time using Postman. Everything is working well — I can successfully get open instances and access the API endpoints.

However, when I try to send a message using the /message/sendText/{instance} endpoint, the request does not return any error, but it takes an extremely long time and eventually nothing is sent. It just hangs forever without completing or timing out.

I'm sending a message to a valid number using the correct payload and headers. Is there anything I might be missing? Any help would be appreciated.

🇧🇷 I'm from Brazil, thank you in advance for your support!

Caous avatar May 29 '25 00:05 Caous

The same is happening with my instance. Now, after restarting, the Berlin instance QR code is also not generating

mokbhai avatar May 29 '25 06:05 mokbhai

Running in docker I solved by updating this environment variable. CONFIG_SESSION_PHONE_VERSION. Update it to this value: - CONFIG_SESSION_PHONE_VERSION=2.3000.1020885143

bocmx avatar May 29 '25 13:05 bocmx

I was actually going to suggest exactly that, @mokbhai — updating the CONFIG_SESSION_PHONE_VERSION did help generate the QR code, but unfortunately it didn’t solve the issue with sending messages.

Caous avatar May 29 '25 13:05 Caous

It solved my issue..

Steps I have taken: Disconnected my WhatsApp. Updated env CONFIG_SESSION_PHONE_VERSION=2.3000.1020885143 Restarted Container (as I am using Docker) Connected WhatsApp again..

It started working..

mokbhai avatar May 29 '25 14:05 mokbhai

CONFIG_SESSION_PHONE_VERSION=2.3000.1020885143

absolute legend! any hints on how to get this magic number in the future in case this happens again?

WarlaxZ avatar May 30 '25 22:05 WarlaxZ