Sanic ASGI warning when running as prescribed by docs #1150
Unanswered
JamesHutchison asked this question in Problem
Replies: 1 comment
-
I got this too, it seems not effect reactpy work. |
BetaWas this translation helpful?Give feedback.
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The docs currently recommend running via Sanic directly.
https://reactpy.dev/docs/guides/getting-started/running-reactpy.html#running-with-sanic
However, if you do, you get this warning:
No scope. Sanic may not be running with an ASGI serverIt seems like if users should be using the built-in Sanic server then this warning should be remove, as it is emitted by ReactPy here:
https://github.com/reactive-python/reactpy/blob/main/src/py/reactpy/reactpy/backend/sanic.py#L167
If users should be using ASGI to serve Sanic, then instructions on how to do that should be provided.
BetaWas this translation helpful?Give feedback.
All reactions