Connection handler can be called twice if the first call raises TypeError #10005

Closed
opened 2026-08-29 10:57:20 +00:00 by miguel · 0 comments
Owner

Because there are two accepted signatures for the connect handler the first signature is tried and if that raises TypeError then the handler is called again with the second signature. This is a problem when the handler raises its own TypeError exception, not related to invoking the function with the wrong arguments.

Reference: https://github.com/miguelgrinberg/python-socketio/issues/1490

Because there are two accepted signatures for the `connect` handler the first signature is tried and if that raises `TypeError` then the handler is called again with the second signature. This is a problem when the handler raises its own `TypeError` exception, not related to invoking the function with the wrong arguments. Reference: https://github.com/miguelgrinberg/python-socketio/issues/1490
miguel self-assigned this 2026-09-04 15:38:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
miguelgrinberg/python-socketio#10005
No description provided.