Getting 403 while connecting to websocket #1247
Replies: 2 comments 5 replies
-
Please follow the rules of this repository. Do not write issues when you need help solving a problem on your own application. The issues board is for bugs that need to be fixed on this package. Use the discussions board to ask questions or troubleshoot an issue on your own application. Thank you. Basically your problem is that you are mixing up the FastAPI and the Socket.IO ASGI applications in a strange way. You have to decide if you want to use the This package tries to be agnostic to what other libraries or frameworks you use, so the FastAPI specific solution is not something I intend to support (though I'm sure it is possible to make it work). For the |
Beta Was this translation helpful? Give feedback.
-
Many times passed, But i hope this solution fit for you. |
Beta Was this translation helpful? Give feedback.
-
I have used python-socketio with FastAPI & Uvicorn as server, But when I try to connect to socket using the below mentioned URL getting 403 as response
Dependency:
python-engineio 3.14.2
python-socketio 4.6.1
uvicorn 0.22.0
fastapi 0.97.0
URL to connect: ws://localhost:5050/ws
Code:
Response
Error: Unexpected server response: 403
Beta Was this translation helpful? Give feedback.
All reactions