Skip to content

Compatible version of python-engineio and python-socketio reports function argument mismatch #1244

@meshashiranjan

Description

@meshashiranjan

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:

  1. Install package as shown in requirements.txt. With Django.
  2. A socketio html page is having load of from https://cdnjs.cloudflare.com/ajax/libs/socket.io/**4.7.2**/socket.io.min.js
  3. When the page loads
  4. 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

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