-
-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Mounted asgi app unable to connect via websocket #3980
Comments
I cant reproduce there's a bunch of statics that arent shipped, can you give a simpler MCVE ? :
|
@euri10 slimmed down the MVCE, if possible can you see the FastAPI version that is in the repo:
|
I'm not sure if the root path is being passed to the ASGI marimo app |
add a / to your ws route seems to solve it
|
usually with ws when you get a 403 it's a pretty good indication the route is not found, hence how I found the reason. more on starlette trailing slashes: encode/starlette#869 |
@euri10 thanks for investigating, wasn't aware litestar used starlette as the backend. |
mmmm litestar was using starlette a while ago, though now it's completely seperated you wouldn't have that bug using litestar as a base, just saying |
Description
While mounting a asgi app (marimo), websocket connections cannot be accepted.
environment: Win10, WSL2 - Rockylinux 9.5
URL to code causing the issue
https://github.com/GH-maggio/hello_marimo
MCVE
Steps to reproduce
1. uv run litestar run 2. navigate via web browser to http://127.0.0.1:8000/notebooks/notebook1 3. See error in terminal
Screenshots
Logs
Litestar Version
[project]
name = "hello-marimo"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"fastapi[standard]>=0.115.7",
"litestar[standard]>=2.14.0",
"marimo>=0.10.19",
]
Platform
The text was updated successfully, but these errors were encountered: