Unable to send an SMS notification via the UI

CédricN5 days ago

Hello everyone,

What works :

From the command line, a direct POST to https://www.traccar.org/sms/ with the correct Authorization header and the JSON payload {"to":"{phone}","message":"{message}"} successfully sends an SMS.

In the Traccar UI, the "test" action returns 204 No Content.

What doesn’t work :

Despite the 204 response, the SMS does not actually arrive when triggered via the UI.

Traccar logs show activity on the Jetty side and occasionally a NameNotFoundException thrown by HttpSmsClient.

Context & configuration expectations :
Capture d'écran 2025-08-06 124402.png

Overall interpretation :

The successful curl test proves that the OVH network → traccar.org/sms endpoint and the token are working fine.
The UI’s 204 response indicates that Traccar is using HttpSmsClient, without any fatal errors.
The “Unconsumed content” message likely suggests that the user’s phone number isn’t being recognized—even though it appears correctly formatted and populated.

CédricN5 days ago

traccar 6.8.1

Anton Tananaev5 days ago

Your configuration doesn't look correct. At the very least you're missing sms.http.template.

CédricN5 days ago

Hello Anton;
Thanks for your quick response!
I've been using Traccar since 2018, and congratulations!
This installation is completely new via Docker Traccar/latest.
Sorry, bad screenshot.

Capture d'écran 2025-08-06 135149.png

Anton Tananaev5 days ago

This looks correct.

CédricN5 days ago

Yes, and the curl works from the server.
Where do you think I can investigate?

Anton Tananaev5 days ago

Maybe capture traffic between the server and the messaging URL and see what the difference is.