-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
启动报错 #2985
Labels
Comments
from sanic import Sanic, text, json
app = Sanic("fuwu")
if __name__ == '__main__':
app.run(host="0.0.0.0", port=8000) Setting the correct host name seems to address the issue. But we might want to implement a host name validator to avoid confusing error message. 把 |
pygeek
added a commit
to pygeek/sanic
that referenced
this issue
Jul 31, 2024
pygeek
added a commit
to pygeek/sanic
that referenced
this issue
Jul 31, 2024
This is still a bug, however. |
pygeek
added a commit
to pygeek/sanic
that referenced
this issue
Jul 31, 2024
pygeek
added a commit
to pygeek/sanic
that referenced
this issue
Jul 31, 2024
pygeek
added a commit
to pygeek/sanic
that referenced
this issue
Jul 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Describe the bug
Code snippet
Expected Behavior
启动就报错,
How do you run Sanic?
as a model
Operating System
Windows
Sanic Version
sanic = {extras = ["ext"], version = "^24.6.0"}
Additional context
No response
The text was updated successfully, but these errors were encountered: