Postman Api Testing

Gantz6 years ago

Hi, first of all thanks for your magnificent work,
im trying to monitor the traccar api with postman, scheduling requests to the positions api and devices api, the devices api always works fine, but the positions api fails sometimes (approximately 70% of the times), and every time i try the request manually it succeeds,do you have any idea why is this happening?

this is the info of the request:
method: GET,
URL: http://xx.xxx.xx.xxx:8082/api/positions
Accept: application/json
Autorization: Basic (user, password)

Thanks for the help.

Anton Tananaev6 years ago

You need to include Accept header for positions.

Gantz6 years ago

Thanks for your quick response:

i have the header Accept: application/json, is not correct for positions???

Anton Tananaev6 years ago

Looks correct.

Anton Tananaev6 years ago

Make sure there are no typos anywhere.