-
Notifications
You must be signed in to change notification settings - Fork 749
Description
Describe the bug
URL: http://127.0.0.1:2718?access_token=7JWPLj-cJuXMWMdkSHP11g
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 244, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send) # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\errors.py", line 151, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\auth.py", line 219, in call
return await super().call(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\sessions.py", line 85, in call
await self.app(scope, receive, send_wrapper)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\base.py", line 103, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\auth.py", line 250, in call
await super().call(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\authentication.py", line 48, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\auth.py", line 239, in wrapped_app
await app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\cors.py", line 77, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 97, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 1 more time]
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 716, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 736, in app
await route.handle(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 462, in handle
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 716, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 736, in app
await route.handle(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 364, in handle
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 97, in app
await wrap_app_handling_exceptions(app, session)(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 95, in app
await func(session)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\endpoints\ws.py", line 108, in websocket_endpoint
await WebsocketHandler(
...<8 lines>...
).start()
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\endpoints\ws.py", line 617, in start
get_session()
~~~~~~~~~~~^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\endpoints\ws.py", line 594, in get_session
new_session = mgr.create_session(
query_params=query_params.to_dict(),
...<2 lines>...
file_key=self.file_key,
)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\sessions.py", line 861, in create_session
session = Session.create(
initialization_id=file_key,
...<13 lines>...
ttl_seconds=self.ttl_seconds,
)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\sessions.py", line 473, in create
return cls(
initialization_id=initialization_id,
...<5 lines>...
ttl_seconds=ttl_seconds,
)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\sessions.py", line 528, in init
self.message_distributor.start()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_utils\distributor.py", line 76, in start
asyncio.get_event_loop().add_reader(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.input_connection.fileno(), self._on_change
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\DELL\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib\asyncio\events.py", line 552, in add_reader
raise NotImplementedError
NotImplementedError
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\uvicorn\protocols\websockets\websockets_impl.py", line 244, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send) # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\applications.py", line 113, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\errors.py", line 151, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\auth.py", line 219, in call
return await super().call(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\sessions.py", line 85, in call
await self.app(scope, receive, send_wrapper)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\base.py", line 103, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\auth.py", line 250, in call
await super().call(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\authentication.py", line 48, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\auth.py", line 239, in wrapped_app
await app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\cors.py", line 77, in call
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 97, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\middleware.py", line 361, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 1 more time]
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 716, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 736, in app
await route.handle(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 462, in handle
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 716, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 736, in app
await route.handle(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 364, in handle
await self.app(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 97, in app
await wrap_app_handling_exceptions(app, session)(scope, receive, send)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\starlette\routing.py", line 95, in app
await func(session)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\endpoints\ws.py", line 108, in websocket_endpoint
await WebsocketHandler(
...<8 lines>...
).start()
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\endpoints\ws.py", line 617, in start
get_session()
~~~~~~~~~~~^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\api\endpoints\ws.py", line 594, in get_session
new_session = mgr.create_session(
query_params=query_params.to_dict(),
...<2 lines>...
file_key=self.file_key,
)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\sessions.py", line 861, in create_session
session = Session.create(
initialization_id=file_key,
...<13 lines>...
ttl_seconds=self.ttl_seconds,
)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\sessions.py", line 473, in create
return cls(
initialization_id=initialization_id,
...<5 lines>...
ttl_seconds=ttl_seconds,
)
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_server\sessions.py", line 528, in init
self.message_distributor.start()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\DELL\Desktop\mo\uv_mo\Ex4.venv\Lib\site-packages\marimo_utils\distributor.py", line 76, in start
asyncio.get_event_loop().add_reader(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.input_connection.fileno(), self._on_change
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\DELL\AppData\Roaming\uv\python\cpython-3.13.7-windows-x86_64-none\Lib\asyncio\events.py", line 552, in add_reader
raise NotImplementedError
NotImplementedError
Will you submit a PR?
- Yes
Environment
Windows + Python 3.13.7
Code to reproduce
No response