Node-Red http request and Traccar API?

Toni Hälikkä5 years ago

Hi,
I have implemented flow to Node-Red where http request gets the positions of the devices from Traccar API. http://traccar.net:8082:/api/positions. Everything was working fine about 2 days, but now I am getting NullPointerException (PositionResource:90 < ...) from the Traccar API. What might be wrong?
I have checked the http request headers : authorization:Basic GARTQWgaf4ww4taG, accept:application/json, accept-encoding:gzip/deflate, accept-language:enUS,En;q=0.8, user-agent:Mozilla/5.0.........

All other http requests are working fine like http://traccar.net:8082:/api/users, http://traccar.net:8082:/api/devices and so on.

Toni Hälikkä5 years ago

Hi,
I solved this by setting the headers before http request to get positions. Thanks anyway.

Lennart de Vries4 years ago

Can you share your flow maybe?
I want to do something similar.