Traccar log not showing geocoder errors

John Little2 years ago

I'm implementing a dockerized traccar using nominatim in another docker host, and the geocoder works. I'm very grateful.

But, there's no mention of nominatim or its URL in the tracker server log, even with log level "all". And, if I stop the nominatim server to provoke an error, clicking "show address" on a device fails with a nice pop-up

Connection refused (Connection refused) - ConnectException (... JsonGeocoder:126 ServerResource:89  ...)

but there's no warnings or errors in tracker-server.log. The only indication I can find in the log is:

DEBUG: Exception 'java.net.ConnectException: Connection refused (Connection refused)' has been mapped by 'org.traccar.api.ResourceErrorHandler' to response 'Bad Request' (400:CLIENT_ERROR).

and the jetty request log has

GET /api/server/geocode?latitude=-36.8715087&longitude=174.7627113 HTTP/1.1" 400 109

What am I missing?

Anton Tananaev2 years ago

If you use the API and get the error response, it's not logged anywhere in Traccar. Only if automatic geocoding failed, it will show in the logs.