Connect to websocket on docker container

ahmad kharsah3 months ago

Hi,
I have traccar running in a docker conatiner on linux Ubuntu, with Apache as a proxy.

        ProxyPass /api/socket ws://localhost:8082/api/socket
        ProxyPassReverse /api/socket ws://localhost:8082/api/socket

        ProxyPass / http://localhost:8082/
        ProxyPassReverse / http://localhost:8082/

Also, I setup the SSL Certificate.
the issue is when I'm trying to connect to the websocket through Postman after getting the session, I got this error:

"Error: getaddrinfo ENOTFOUND" 

any idea to resolve this?

Anton Tananaev3 months ago

The error seems to indicate that you have an issue with your domain. It's not something specific to WebSocket.

ahmad kharsah3 months ago

I'm using cloudflare to manage the DNS and SSL , is this what cause the issue?

Michaelj3 months ago

I also face the same issue but I do not know how to resolve it.