When use --interface=wsgi and --lifespan=on there was something wrong #1631
Unanswered
ryomahan
asked this question in
Potential Issue
Replies: 2 comments 6 replies
-
the PR #1632 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How can I reproduce it? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we start a WSGI Application use uvicorn with options:
--interface=wsgi --lifespan=on
there will throw an error like:but when we only use
--interface=wsgi
the WSGI Application will run successfully, and the interesting thing is lifespan option default value is "auto" and the auto lifespan is equal with on lifespan, they all useuvicorn.lifespan.on:LifespanOn
.There is two ways to resolve:
--interface=wsgi
withuvicorn.lifespan.on:LifespanOn
, whether--lifespan=on
or--lifespan=auto
--interface=wsgi
with--lifespan=on
or--lifespan=auto
I choose the second way to resolve it and push a PR.
Beta Was this translation helpful? Give feedback.
All reactions