Using OwnTracks client to send to Traccar server error

ScottTheFalcon2 years ago

I'm trying to use the OwnTracks client to send via HTTPS to my Traccar server on port 5144.

In the client I have set:

  • connection mode HTTP
  • host is https://<myserver>:5144
  • Identification -> Device ID = 611184

In the Traccar server log I'm getting:

2022-05-05 11:20:39  INFO: [d3627a30: owntracks < 172.nn.nn.84] HEX: 1603010200010001fc0303a119b9277674e49db5f2d3c8e783df467078beb51cc12896097443302852b44020254546e084193e0cc4b3f248f5012aa4f7163cc548bba50e4a5ccc6b36d72332001e130113021303c02bc02ccca9c02fc030cca8c013c014009c009d002f0035010001950000001800160000137265616c74696d65646174612e636f6d2e617500170000ff01000100000a00080006001d00170018000b00020100002300000010000b000908687474702f312e31000500050100000000000d00140012040308040401050308050501080606010201003300260024001d0020018770b00b98bb90d10599694c401fbffc64bfb0bbc80c7b880fe2857015e114002d00020101002b00050403040303001500ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
2022-05-05 11:20:39  WARN: [d3627a30] error - Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN, STRING, NUMBER, TRUE, FALSE, NULL] - JsonParsingException (... < OwnTracksProtocolDecoder:47 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)

The error code on the OwnTracks client says Error 404 connection closed.

It seems like the incoming packet arrives, but is empty or malformed???

Thoughts?

Anton Tananaev2 years ago

It looks like you simply haven't configured HTTPS on the server.

ScottTheFalcon2 years ago

I got it to work but by changing a number things at the same time so not sure now. But I think accessing without any regard to SSL, so going to http on port 5144.

Unfortunately OwnTracks doesn't seem to work as well as the native Traccar client, or Tracker for Traccar so I'm back to native...

But thanks very much!