Skip to content
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

[BUG] The server is not responding #606

Open
patrick-siotti opened this issue Dec 16, 2024 · 1 comment
Open

[BUG] The server is not responding #606

patrick-siotti opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@patrick-siotti
Copy link

The server is not responding

from fasthtml.common import *

app, rt = fast_app(debug=True, live=True)

@rt('/')
def get():
  return Main(H1('hello'), cls='container')

serve()

Here, when I connect to http://localhost:5001, http://127.0.0.1:5001, or http://0.0.0.0:5001, it keeps loading indefinitely. It was supposed to display the page I created.

Versions:

  • fastcore: 1.7.27
  • fastlite: 0.0.13
  • python-fasthtml: 0.10.1

I’m using VS Code with Python version 3.12.6. The server started normally but does not respond. I tested it in both Firefox and Chrome browsers. I’m using Windows 11.

The tab trying to connect does not show any errors; it just keeps loading indefinitely.

image

@patrick-siotti patrick-siotti added the bug Something isn't working label Dec 16, 2024
@patrick-siotti patrick-siotti changed the title [BUG] [BUG] The server is not responding Dec 16, 2024
@patrick-siotti
Copy link
Author

I modified the serve to:

serve(host='127.0.0.1')

Then it started working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant