Websockets

baikunthareemal 2 years ago

I am attempting to establish a WebSocket connection through a Python app, but I'm encountering difficulties in connecting to the server. What might be the issue?

Anton Tananaev 2 years ago

Are you planning to provide any details?

baikunthareemal 2 years ago
Error: Unexpected server response: 503
Handshake Details
Request URL: http://localhost:8082/api/socket
Request Method: GET
Status Code: 503 Service Unavailable
Request Headers
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: XsG540AE9qZdVWQq5AqSuQ==
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Host: localhost:8082
Response Headers
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html;charset=iso-8859-1
Content-Length: 100
Server: Jetty(10.0.15)
Anton Tananaev 2 years ago

Are you logged in? And providing session cookie?

baikunthareemal 2 years ago

no i dont know exactly how to login and provide session

Anton Tananaev 2 years ago

Please read the documentation first then.

baikunthareemal 2 years ago

please tell me how can i check whether the WS connection from traccar is running or not