Skip to content

Assertion error when connecting to python-socketio server #15

@JeremyVarghese

Description

@JeremyVarghese

I created a socketio server and tried to connect an esp32 to the server. On the server side, it is showing that it is connected but on the client side, on the esp32 by using the following code
uri='http://192.168.56.1:5000' with usocketio.client.connect('http://127.0.0.1:5000/') as sio:
it shows an assertion error on line 123 of client.py
File "usocketio/client.py", line 123 in connect Assertion Error
To test what was wrong, I added a print line before that line
packet = socketio._recv() print("packet:",packet) ####### assert packet == (PACKET_NOOP, '')
which gives an output
packet: (None,None)

I am new to websocket communication and event driven programming is best suited for my usage but I am unable to understand what the error is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions