Api /reports/events response error

Valentina3 years ago

Hello
I'm having a problem in the call to api/reports/events.
I get a response with strange characters, encoded in an incomprehensible way. I don't know exactly

the call is this:
http://user:password@domain/api/reports/events?deviceId=2&from=2021-06-01T10:00:00Z&to=2021-06-28T14:00:00Z

part of the answer:
[some binary data]

has this happened before? this only happens with the call to events in reports

i use the latest version of traccar (4.13)
and both in the db and in the configuration, servertime has been replaced with eventtime

hope you can help me understand

Valentina

Anton Tananaev3 years ago

If you want to get a JSON response, you have to provide corresponding Accept header in the request.