I am running traccar v5.5 on a Ubuntu server with the following additions to standard traccar.xml:
<entry key='forward.enable'>true</entry>
<entry key='forward.json'>true</entry>
<entry key='forward.url'>http://localhost:1880/traccar</entry>
<entry key='event.forward.enable'>true</entry>
<entry key='event.forward.url'>http://localhost:1880/traccar</entry>
The goal is getting the location update forwarded as JSON to my Node-RED HTTP in node:
The strange thing here is that I do receive the events in Node-RED on http://localhost:1880/traccar
, but I do not get any location data in. Whenever a new location update comes into traccar, I see this error warning in the traccar logs: /opt/traccar/logs/tracker-server.log
WARN: Position forwarding failed: 0 pending - HTTP code 404 - RuntimeException (PositionForwarderUrl:74 < *:67 < ...)
Why is this? How is it possible that the events DO get successfully send to the exact same HTTP endpoint and the position PUSH gives an obscure HTTPS error? I have tried all the tips and trics from the forum, but without any results.
Tips are welcome and appreciated.
Thanks Anton, this is indeed the issue. I have changed it and now it works perfect.
<entry key='forward.enable'>true</entry>
<entry key='forward.type'>json</entry>
<entry key='forward.url'>http://localhost:1880/traccar</entry>
<entry key='event.forward.enable'>true</entry>
<entry key='event.forward.url'>http://localhost:1880/traccar</entry>
I am running traccar v5.5 on a Ubuntu server with the following additions to standard traccar.xml:
<entry key='forward.enable'>true</entry> <entry key='forward.json'>true</entry> <entry key='forward.url'>http://localhost:1880/traccar</entry> <entry key='event.forward.enable'>true</entry> <entry key='event.forward.url'>http://localhost:1880/traccar</entry>
The goal is getting the location update forwarded as JSON to my Node-RED HTTP in node:
The strange thing here is that I do receive the events in Node-RED on
http://localhost:1880/traccar
, but I do not get any location data in. Whenever a new location update comes into traccar, I see this error warning in the traccar logs:/opt/traccar/logs/tracker-server.log
Why is this? How is it possible that the events DO get successfully send to the exact same HTTP endpoint and the position PUSH gives an obscure HTTPS error? I have tried all the tips and trics from the forum, but without any results.
Tips are welcome and appreciated.