Error when trying to see todays route.

Anders5 months ago

I have the client on a android and it seems to report correct. If I use playback it works flawless but Combined give this error

For input string: "32.679514623553985" - NumberFormatException (... < OverrideFilter:49 < ...)

Nothing in log
When I start with Route, trips, events etc it works, and then I can go back to combined and it works. What can be the problem

Anton Tananaev5 months ago

Not sure what the issue is. It doesn't seem to be in Traccar code. Is this number included in the API request somehow?

Anders5 months ago

No, I think it looks like the latitude for where I live

34.66917944528602, 32.730422694989684

GPS4PETS4 months ago

I can confirm this Problem.
I am using the actual Server Version and Android app

Anton Tananaev4 months ago

Can we see proper logs, not just one line?

GPS4PETS4 months ago

This line is the only log the App shows.
But right now i cant reproduce the problem

Anton Tananaev4 months ago

Then you have to enable full stack traces.

Calin3 months ago

The problem can be solved by setting the phone in the same traccar server language. Seems that is a problem with decimal separator. ( example: Server aspects 12.45 and the phone sends 12,45)

AlexBernal4 days ago

Hey Anton, I've been having this issue as well (occasionally). I believe it has to do with the API request, I will attach the Apache server logs so you can see the request.

GET /api/reports/combined?from=2025-04-23T06%3A00%3A00.000Z&to=2025-04-24T05%3A59%3A59.999Z&deviceId=-100.19510146759872&deviceId=32 HTTP/1.1" 404 95 "https://www.ubik-a.mx/reports/combined" "Mozilla/5.0 (Linux; Android 13; ZTE Blade A34 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/135.0.7049.111 Mobile Safari/537.36

This is how it looks when it works:

GET /api/reports/combined?from=2025-04-23T06%3A00%3A00.000Z&to=2025-04-24T05%3A59%3A59.999Z&deviceId=31 H TTP/1.1" 200 81273 "https://www.ubik-a.mx/reports/combined" "Mozilla/5.0 (Linux; Android 15; motorola edge 50 fusion Build/V1UUS35H.15-41-3; wv) AppleWeb Kit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/135.0.7049.38 Mobile Safari/537.36

Can you see how it sends this coordinates in the request as deviceId=-100.19510146759872? I'm not sure why, but it seems to be sending the "deviceId" twice.

Anton Tananaev4 days ago

The issue is already solved.

AlexBernal4 days ago

Sorry, what's the fix?

Anton Tananaev4 days ago
AlexBernal4 days ago

Thanks