torehydro.blogg.se

Traccar connection error
Traccar connection error









traccar connection error

I want to add https now and there is this guide. Here is my client-side program that would need to auto create connection once its closed by server program. < Content-Type: application/json charset =UTF-8 Hello, I installed traccar on my vps and works fine on http. > Accept: */ * > Cookie: JSESSIONID =xxxxxxxx > * upload completely sent off: 81 out of 81 bytes > * upload completely sent off: 109 out of 109 bytes > Accept: */ * > Cookie: JSESSIONID =xxxxxxx POST /traccar/rest/getPositions HTTP/1.1 > Accept: */ * > Cookie: JSESSIONID =xxxxxxxxxx > * upload completely sent off: 25 out of 25 bytes > Content-Type: application/x-www-form-urlencoded The author added the path bin/ with the two tools kill and ps in the script. Below are examples of logging in an fetching data with curl (with demo site at ). After a lot of updates and never get running traccar without problems I found the solution for these problems: The script traccar.sh is not working correctly. Examples with cURLĪuthentication info is held in HTTP session, so you should have corresponding cookie in every request after logging in.

#Traccar connection error code#

Please refer to mobile web UI javascript code as an example of working with current RESTful API For now authentication data is stored in HTTP session, so prior to any method call the login method must be invoked. Status code 200 means that request completed successfully, any different code means that it failed.ĥ) Method call results are serialised in JSON.Ħ) Most of method calls require authentication. So, you are the test The first thing I would do is make sure the firewall will pass port 3306. For example: /traccar/rest/login?payload=Ĥ) Errors are returned as HTTP status codes. I have spent a few hours now trying to implement Traccar and get a devicetracker to show up in HA but to no avail. Actually you are the first person to use Traccar on a separate machine. For GET requests JSON array must be provided as payload parameter.











Traccar connection error