RootCauseunvalidated

I also tried to use `@app.middleware("http")` but it doesn't seem to work with websockets. — FastAPI application for `websocket` endpoints. Tension: It catches `Exception`, but it doesn't catch, e.g. `ValueError`. Outcome: I also tried to use `@app.middleware("http")` but it doesn't seem to work with websockets.

79e4f153-9f2c-419f-ba76-e29f5853dccc

I also tried to use @app.middleware("http") but it doesn't seem to work with websockets. — FastAPI application for websocket endpoints. Tension: It catches Exception, but it doesn't catch, e.g. ValueError. Outcome: I also tried to use @app.middleware("http") but it doesn't seem to work with websockets.