-
-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client not finding Socket.IO server #55
Comments
How are you running the server inside your docker container? |
And inside the app:
|
First of all, you can't use more than one server process unless you also use a message queue. I don't think that's the reason for the 404s, but keep that in mind once you resolve this issue. I would switch to the configuration that I recommend in the documentation (here). That's something that I tested, so start from there. Main difference is that I did not use a unix socket. |
Sorry, what do you mean by using more than one server process? Thanks, I will try using that configuration and a couple of other ones if it don't work. |
I mean this option will not work: |
I'm using Flask with uWSGI and NGINX, having set up the Socket.IO server as
sio = socketio.Server(async_mode='gevent_uwsgi', logger=True)
. The whole thing is running in a Docker container which listens on localhost port 3536.On the client side, I have JS which sends socket requests to Socket.IO. On all requests Chrome shows 404 NOT FOUND, while server logs don't show nothing at all.
For instance, I have this thing on server side:
And this on the client:
The error I'm getting is:
It seems either that the browser ignores the
io.connect('http://' + document.domain + ':' + location.port + namespace);
line because requests are still sent to /socket.io, or the server is not listening. Help me, please :)The text was updated successfully, but these errors were encountered: