You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The connection successfully established!
So, I Guess This problem is caused by the Python client.
Logs
Attempting polling connection to http://localhost:3000/socket.io/?transport=polling&EIO=4
Polling connection accepted with {'sid': 'G94ku_bzdnzq1keOAAAA', 'upgrades': ['websocket'], 'pingInterval': 25000, 'pingTimeout': 20000}
Engine.IO connection established
Sending packet MESSAGE data <binary>
Attempting WebSocket upgrade to ws://localhost:3000/socket.io/?transport=websocket&EIO=4
WebSocket upgrade was successful
Unexpected error decoding packet: "'int' object is not subscriptable", aborting
Waiting for write loop task to end
Exiting write loop task
Engine.IO connection dropped
Exiting read loop task
Connection failed, new attempt in 0.72 seconds
Attempting polling connection to http://localhost:3000/socket.io/?transport=polling&EIO=4
Polling connection accepted with {'sid': '7ebRRtOdxMCdxHngAAAB', 'upgrades': ['websocket'], 'pingInterval': 25000, 'pingTimeout': 20000}
Engine.IO connection established
Sending packet MESSAGE data <binary>
Attempting WebSocket upgrade to ws://localhost:3000/socket.io/?transport=websocket&EIO=4
WebSocket upgrade was successful
Unexpected error decoding packet: "'int' object is not subscriptable", aborting
Waiting for write loop task to end
Exiting write loop task
Engine.IO connection dropped
Exiting read loop task
Connection failed, new attempt in 0.74 seconds
Attempting polling connection to http://localhost:3000/socket.io/?transport=polling&EIO=4
Polling connection accepted with {'sid': 'u8vBwPi-S91RDHawAAAC', 'upgrades': ['websocket'], 'pingInterval': 25000, 'pingTimeout': 20000}
Engine.IO connection established
Sending packet MESSAGE data <binary>
Attempting WebSocket upgrade to ws://localhost:3000/socket.io/?transport=websocket&EIO=4
WebSocket upgrade was successful
Unexpected error decoding packet: "'int' object is not subscriptable", aborting
Waiting for write loop task to end
Exiting write loop task
Engine.IO connection dropped
Exiting read loop task
Connection failed, new attempt in 1.15 seconds
Connection failed, new attempt in 1.94 seconds
Attempting polling connection to http://localhost:3000/socket.io/?transport=polling&EIO=4
Polling connection accepted with {'sid': 'ex4z-tWqdlYpX35yAAAD', 'upgrades': ['websocket'], 'pingInterval': 25000, 'pingTimeout': 20000}
Engine.IO connection established
Sending packet MESSAGE data <binary>
Attempting WebSocket upgrade to ws://localhost:3000/socket.io/?transport=websocket&EIO=4
WebSocket upgrade was successful
Unexpected error decoding packet: "'int' object is not subscriptable", aborting
Waiting for write loop task to end
Exiting write loop task
Engine.IO connection dropped
Exiting read loop task
Connection failed, new attempt in 1.18 seconds
^CTraceback (most recent call last):
File "/Users/saifa_96/opt/anaconda3/envs/study/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Users/saifa_96/opt/anaconda3/envs/study/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/Users/saifa_96/Documents/python/poetry-study/backend_socket.py", line 20, in main
await sio.connect('ws://localhost:3000')
File "/Users/saifa_96/opt/anaconda3/envs/study/lib/python3.8/site-packages/socketio/asyncio_client.py", line 163, in connect
raise exceptions.ConnectionError(
socketio.exceptions.ConnectionError: One or more namespaces failed to connect
The text was updated successfully, but these errors were encountered:
@Saifa-96 can I ask you to retest using the main branch in this repo for your client?
The issue appears to be related to not passing any authentication data with your connection request. The Python server sends None when there is no auth, and the JS server does not seem to like that and closes the connection. Now I'm passing an empty object/dict like the Node client, and that seems to work.
Describe the bug
When I am using a
msgpack
mode, The python client can't connect to the Node.js local server.The following is my server-side code:
My client-side-python code:
Additional
I try to create a simple connection using Node.js, like this:
The connection successfully established!
So, I Guess This problem is caused by the Python client.
Logs
The text was updated successfully, but these errors were encountered: