IMPORTANT: If you have a question, or you are not sure if you have found a bug in this package, then you are in the wrong place. Hit back in your web browser, and then open a GitHub Discussion instead. Likewise, if you are unable to provide the information requested below, open a discussion to troubleshoot your issue.
Compatible version of python-engineio and python-socketio reports function argument mismatch
--- requirements.txt ----
Django
eventlet
python-engineio==4.7.0
python-socketio==5.9.0
pytz
six
uvicorn
requests
pyserial
To Reproduce
Steps to reproduce the behavior:
- Install package as shown in requirements.txt. With Django.
- A socketio html page is having load of from https://cdnjs.cloudflare.com/ajax/libs/socket.io/**4.7.2**/socket.io.min.js
- When the page loads
- I get below error
The error:
GET /socket.io/?username=xxxxx&app_name=index_html&EIO=4&transport=polling&t=Ohbatxz HTTP/1.1" 200 278 0.001518
message handler error
Traceback (most recent call last):
File "./venvpy/lib/python3.7/site-packages/engineio/server.py", line 644, in _trigger_event
return self.handlersevent
File "./venvpy/lib/python3.7/site-packages/socketio/server.py", line 783, in _handle_eio_message
self._handle_connect(eio_sid, pkt.namespace, pkt.data)
File "./venvpy/lib/python3.7/site-packages/socketio/server.py", line 669, in _handle_connect
'connect', namespace, sid, self.environ[eio_sid], data)
File "./venvpy/lib/python3.7/site-packages/socketio/server.py", line 750, in _trigger_event
return self.handlers[namespace]event
TypeError: connect() takes 2 positional arguments but 3 were given
Expected behavior
Socketio Connect should happen without any problem
IMPORTANT: If you have a question, or you are not sure if you have found a bug in this package, then you are in the wrong place. Hit back in your web browser, and then open a GitHub Discussion instead. Likewise, if you are unable to provide the information requested below, open a discussion to troubleshoot your issue.
Compatible version of python-engineio and python-socketio reports function argument mismatch
--- requirements.txt ----
Django
eventlet
python-engineio==4.7.0
python-socketio==5.9.0
pytz
six
uvicorn
requests
pyserial
To Reproduce
Steps to reproduce the behavior:
The error:
GET /socket.io/?username=xxxxx&app_name=index_html&EIO=4&transport=polling&t=Ohbatxz HTTP/1.1" 200 278 0.001518
message handler error
Traceback (most recent call last):
File "./venvpy/lib/python3.7/site-packages/engineio/server.py", line 644, in _trigger_event
return self.handlersevent
File "./venvpy/lib/python3.7/site-packages/socketio/server.py", line 783, in _handle_eio_message
self._handle_connect(eio_sid, pkt.namespace, pkt.data)
File "./venvpy/lib/python3.7/site-packages/socketio/server.py", line 669, in _handle_connect
'connect', namespace, sid, self.environ[eio_sid], data)
File "./venvpy/lib/python3.7/site-packages/socketio/server.py", line 750, in _trigger_event
return self.handlers[namespace]event
TypeError: connect() takes 2 positional arguments but 3 were given
Expected behavior
Socketio Connect should happen without any problem