Skip to content

One or more namespaces failed to connect #1308

Answered by HichTala
HichTala asked this question in Q&A
Discussion options

You must be logged in to vote

Adding '/' to the namspaces list reslov the issue,

import socketio

sio = socketio.Client(logger=True, engineio_logger=True)
sio.connect('https://server.url.com', transports=['websocket'], namespaces=['/', '/something'])

The problem may be that the client connects to '/' when you don't think it should. One straight forward solution will be to add / to self.connection_namespaces in the same time it is added to self.namespace but I can't find where self.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.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@HichTala
Comment options

@HichTala
Comment options

@HichTala
Comment options

@HichTala
Comment options

Answer selected by HichTala
@miguelgrinberg
Comment options

@HichTala
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants