traccar 4.3 http://localhost:8083/api/positions error

Jose B6 years ago

Hi
For a long time, I was accessing /api/positions without problem, by browser (URL) or by connecting directly in API.

Today I have the ERR_INVALID_RESPONSE error. I looked the tracker-server.log and did not have nothing related with this.

Searching in google, I see some topics saying to include "Accept" header in the request.

Could help me what file and what values I need change, please?

JB

Anton Tananaev6 years ago

Header is an HTTP header. It's not in a file. It's a part of your request.

Jose B6 years ago

When you say that it's a part of your request, I have a doubt
Using chrome, opening the http: //.../api/devices or http: //.../api/users , the page works, but opening http: //.../api/positions it have an error.

apologises for simple question: Is not a same way to request?

I'm a beginner in programming.
JB

Anton Tananaev6 years ago

Opening it in browser is one way to request, but there is no way to customize header in that case.