-
Hi, I am trying to establish a connection to a server, the server url looks like this: "https://server.url.com/something" so here is my code: import socketio
sio = socketio.Client(logger=True, engineio_logger=True)
sio.connect('https://server.url.com', transports=['websocket'], namespaces=['/something']) However, I'm encountering the following error:
I am trying to understand if it originates from the server side or if there's something wrong I'm doing (or not doing). what is the cause of the issue, is it in the server side ? Since I don't have direct access to the server, I'm a bit stuck. Any insights or suggestions on how to troubleshoot this would be greatly appreciated! Thanks in advance for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
This looks like it's your client ending everything:
The "1" packet in the Socket.IO protocol is the Your server is doing something odd, by the way. You are asking for a connection to |
Beta Was this translation helpful? Give feedback.
Adding
'/'
to the namspaces list reslov the issue,The problem may be that the client connects to
'/'
when you don't think it should. One straight forward solution will be to add/
toself.connection_namespaces
in the same time it is added toself.namespace
but I can't find whereself.namespace
is modified and I don't have time to investigate more today, but I can open a pull request in the future to look at it if you want.