event.forward.header not working

Primtek4 years ago

Hi,

How to forward using auth header?, I use traccar.xml below, if it works properly if it does not use event.forward.header.. what I missed?

<entry key='forward.enable'>true</entry>
<entry key='forward.url'>https://xxx/api/traccar/live</entry>
<entry key='forward.json'>true</entry>

<entry key='event.forward.enable'>true</entry>
<entry key='event.forward.url'>https://xxx/api/traccar/live</entry>

<entry key='event.forward.header'>
  Authorization: Basic xxxxxxxxxxxxxxxxxxx
</entry>
Bernhard4 years ago

do you get deviceonline/deviceoffline/deviceunknown events if you do not use the "event.forward.header" at all?
I have a similar issue but I get only "deviceonline/deviceoffline/deviceunknown" events and none of the other (geofence/device moving for example)

Don4 years ago

Yes, I able to receive all positions & events

Primtek4 years ago

any body can help this? ..

I see in /opt/traccar/logs

2020-08-26 19:52:02  WARN: [b6915a59] error - Index 1 out of bounds for length 1 - ArrayIndexOutOfBoundsException (EventForwarder:55 < NotificationManager:116 < *:122 < ConnectionManager:112 < ...)
2020-08-26 19:52:02  INFO: [b6915a59] disconnected
2020-08-26 19:52:02  WARN: [b6915a59] error - Index 1 out of bounds for length 1 - ArrayIndexOutOfBoundsException (EventForwarder:55 < NotificationManager:116 < *:122 < ConnectionManager:112