Connect to websocket on docker container

ahmad kharsah a year 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 Tananaev a year ago

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

ahmad kharsah a year ago

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

Michaelj a year ago

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