When I run this, I can see User OLjL2P8m2rj3TRm4AAAA connected to socketIO endpoint. followed by the below Traceback on the rasa server side.
Traceback (most recent call last):
File "d:\venv\rasax_0_31_5\lib\site-packages\engineio\asyncio_server.py", line 447, in _trigger_event
ret = await self.handlers[event](*args)
File "d:\venv\rasax_0_31_5\lib\site-packages\socketio\asyncio_server.py", line 516, in _handle_eio_connect
return await self._handle_connect(sid, '/')
File "d:\venv\rasax_0_31_5\lib\site-packages\socketio\asyncio_server.py", line 435, in _handle_connect
namespace=namespace))
File "d:\venv\rasax_0_31_5\lib\site-packages\socketio\asyncio_server.py", line 405, in _send_packet
await self.eio.send(sid, encoded_packet, binary=False)
TypeError: send() got an unexpected keyword argument 'binary'
On the client side, I see a Connection error as below.
@siriusraja are you able to change the topic category from Announcements, Release Announcement to Rasa Open Source which is showing under your topic “Connection error - socket io” change it and you will be able to solve.
Hi Nimit , I have rasa 2.5.0 version . I tried using 1.0.3 cdn version
Yet I get
2022-01-22 15:11:09 DEBUG rasa.core.channels.socketio - User evy1fyqGKFgj3WTyAACa connected to socketIO endpoint.
connect async handler error
Traceback (most recent call last):
File “/home/nlpuser/.local/lib/python3.6/site-packages/engineio/asyncio_server.py”, line 456, in _trigger_event
ret = await self.handlersevent
File “/usr/lib64/python3.6/asyncio/coroutines.py”, line 110, in next
return self.gen.send(None)
File “/home/nlpuser/.local/lib/python3.6/site-packages/socketio/asyncio_server.py”, line 487, in _handle_eio_connect
return await self._handle_connect(sid, ‘/’)
File “/usr/lib64/python3.6/asyncio/coroutines.py”, line 110, in next
return self.gen.send(None)
File “/home/nlpuser/.local/lib/python3.6/site-packages/socketio/asyncio_server.py”, line 408, in _handle_connect
namespace=namespace))
File “/usr/lib64/python3.6/asyncio/coroutines.py”, line 110, in next
return self.gen.send(None)
File “/home/nlpuser/.local/lib/python3.6/site-packages/socketio/asyncio_server.py”, line 378, in _send_packet
await self.eio.send(sid, encoded_packet, binary=False)
TypeError: send() got an unexpected keyword argument ‘binary’
Nothing much I wanted to use this socket io rasa web chat .So first I tried to check if there is any issue with code . I have made needed changes in cred file ran with cors “*” yet in UI inspect I see ET http://xxxxx:5008/socket.io/?EIO=4&transport=polling&t=Nw2OCl0 net::ERR_CONNECTION_REFUSED
I initially felt it must be CORS but when I debugged I found a debug log rasa.core.channels.socketio - User evy1fyqGKFgj3WTyAACa connected to socketIO endpoint. So now I dont know why is socketio throwing unauthorized error and