Lifespan example with state throws "The server does not support "state" in the lifespan scope." error #2691
-
Hi, The mechanism described here where the lifespan can yield a dictionary into
This is the exact code that I'm running under uvicorn (identical with the example), with starlette==0.38.5, uvicorn == 0.16.0 and httpx in a fresh virtualenv in python3.10:
A minimal example:
|
Beta Was this translation helpful? Give feedback.
Answered by
RoyWiggins
Sep 12, 2024
Replies: 1 comment
-
Oh, fixing this is just a matter of updating uvicorn to the latest version (0.30.6). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RoyWiggins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, fixing this is just a matter of updating uvicorn to the latest version (0.30.6).