forward.url

Atul9 years ago

Hello,

I am trying to use forward.url to forward the data, it works with HTTP, but as soon as I make it HTTPs (SSL) it does not work. Is this not supported or I am doing something wrong?

Please let me know.

Thanks,
Atul

Anton Tananaev9 years ago

I haven't tried it, but I think it should work as long as your server has a valid SSL certificate.

Atul9 years ago

Thanks Anton for quick reply. I do have a valid certificate but for some reason it does not work. Is there any file/log that I can look for that will give me more information about any error. I am on Windows Server.

Thanks,
Atul

Anton Tananaev9 years ago

There is no log, so I guess you need to debug the code or add some extra logging.

Cooper8 years ago

Hello

I still do have problem using https. Is there any solution yet?

Thank you

Anton Tananaev8 years ago

Do you have a valid certificate on the server?

Julius Nhodoa month ago

Hi Anton,

I have set the forward url on traccar.xml, now I am experiencing the following error on the logs: WARN: Position forwarding failed: 0 pending - HTTP code 401 - RuntimeException (PositionForwarderUrl:74 < *:67 < ...)

My forward.url is https and does not need authorization currently I am not sure why I have this error?

    <entry key='forward.enable'>true</entry>
    <entry key='forward.url'>https://example:5004/svc/test/api/v2/gps-location/update</entry>

Logs data:

2025-03-07 14:31:42  INFO: [T87207c54: eelink < 105.8.3.39] 6767120048010c67cae72d13fd3cd3ef0306c4d605310000006707028f000a58c10000744b311afd7463a29edb04890f8f000000000000072925c400e5013100bd000000000000000000000000
2025-03-07 14:31:42  INFO: [T87207c54] id: 352544074297897, time: 2025-03-07 14:31:41, lat: -25.74735, lon: 28.20847, course: 103.0
2025-03-07 14:31:42  INFO: [T87207c54: eelink > 105.8.3.39] 6767120002010c
2025-03-07 14:31:43  WARN: Position forwarding failed: 0 pending - HTTP code 401 - RuntimeException (PositionForwarderUrl:74 < *:67 < ...)
Anton Tananaeva month ago

Julius Nhodo please don't duplicate your questions.

Julius Nhodoa month ago

Thanks Anton sorry for duplication.
My question is when I use the Traccar Client everything works well using the same URL not what I need to change. Does Traccar support https on forward.url ?

Anton Tananaeva month ago

Yes.