Relative Content

Tag Archive for websocketpython-asynciofastapistarletteasgi

Encountering “Error: Exception in ASGI application” for WebSocket server with FastAPI

Hi I am trying to create a simple WebSocket server and client with python and FastAPI.
When I run the server.py and it receives a message from client.py, the server will throw up the follow stack trace and the websocket connection closes, before the loop iterates to open a new websocket server. What is the cause of the error and why does the websocket connection closes?