Skip to content

[BUG] "WebSocket /live-reload" 403 #747

@eibednejo

Description

@eibednejo

Describe the bug
I ran an app (port 5001) with this live=True inside this line of code, and it worked fine, the terminal was fine too.

app, rt = fast_app(live=True, debug=True, pico=False, hdrs=(frankenui, tailwind), before=bware)

Then I shut down the app (ctrl + c).
After that, I tried to run another different app (port 5001) that doesn't have live=True

app, rt = fast_app(hdrs=base_hdrs + custom_styles)

I got this in my terminal, but the app works fine tho

INFO:     127.0.0.1:49494 - "WebSocket /live-reload" 403
INFO:     connection rejected (403 Forbidden)
INFO:     connection closed
INFO:     127.0.0.1:49496 - "WebSocket /live-reload" 403
INFO:     connection rejected (403 Forbidden)
INFO:     connection closed
INFO:     127.0.0.1:49498 - "WebSocket /live-reload" 403
INFO:     connection rejected (403 Forbidden)
INFO:     connection closed

If I run this using port 5002, no issue.

If I add live=True using port 5001, WebSocket got accepted.

app, rt = fast_app(live=True, hdrs=base_hdrs + custom_styles)
Image

Is there any way to stop this repeating message without having to use live=True?

Environment Information
Please provide the following version information:

  • fastlite version: 0.2.0
  • fastcore version: 1.8.4
  • fasthtml version: 0.12.20

Confirmation
Please confirm the following:

  • I have read the FAQ (https://docs.fastht.ml/explains/faq.html)
  • I have provided a minimal reproducible example
  • I have included the versions of fastlite, fastcore, and fasthtml
  • I understand that this is a volunteer open source project with no commercial support.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions