# Connection error - socket io

**URL:** <https://forum.rasa.com/t/connection-error-socket-io/44963>\
**Category:** Rasa Open Source\
**Created:** [June 23, 2021, 12:45pm UTC](https://forum.rasa.com/t/connection-error-socket-io/44963 "2021-06-23T12:45:30Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![siriusraja](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/siriusraja/32/22306_2.png) [@siriusraja](https://forum.rasa.com/u/siriusraja)\
**Post date:** [June 23, 2021, 12:45pm UTC](https://forum.rasa.com/t/connection-error-socket-io/44963/1 "2021-06-23T12:45:30Z")

</div>

Hi ,

I am trying to connect to my rasa instance via python socket io client to perform a test. RASA is up & running and enabled for /socket.io

Below is my client code:

```
import socketio

sio = socketio.Client()
sio.connect("http://localhost:5005/socket.io", transports= 'websocket')

```

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.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/0/09e8a938914b1e89acf4619e77119c2a701aa1d1.png)

Any direction to resolve this. Thanks in advance.

---

_[View the full topic](https://forum.rasa.com/t/connection-error-socket-io/44963)._
