Closed hetvaghasia39 closed 9 months ago
Does this happen with the ASGI examples in this repo, or with your own application? My guess is that this is your own app, and that you have not configured for ASGI correctly. Probably a missing async_mode='asgi'
.
Does this happen with the ASGI examples in this repo, or with your own application? My guess is that this is your own app, and that you have not configured for ASGI correctly. Probably a missing
async_mode='asgi'
.
with my own app, but where should I configure it? And I am using python-socketio
@hetvaghasia39 There are several examples for every supported platform in the python-socketio repo. Have you seen them?
Thank you so much for your help! I just saw your suggestion and implemented async_mode="asgi" for my server object, and it worked like a charm. I really appreciate your quick and effective solution. Thanks again!
Description The Daphne server encounters an error when handling an application. The error is related to the translate_request() function and occurs during the handling of a WebSocket request.
To Reproduce Steps to reproduce the behavior:
Expected behavior The Daphne server should handle WebSocket requests without encountering errors.
Logs daphne logs
uvicorn logs
Additional context The error occurs in the translate_request() function, and it seems to be related to the number of positional arguments passed to the function. This issue needs further investigation and resolution. And this is occurring in Django