Closed gunungpw closed 6 months ago
When you say hanging, do you mean the contents of the page doesnt show at all?
Yes the browser cannot open local host, it just try to open and hang/always loading, and sometimes it cannot connect
That is really true . I experience the same problem.
Do any previous versions of reflex work? Trying to understand if this was introduced in a new release.
Do any previous versions of reflex work? Trying to understand if this was introduced in a new release.
after investigation, the last version that works on my end is 0.3.3, after turning off the firewall and changing default port to 4000
when use the same trick on version 0.3.11,
reflex run
can be used and can open in the browser but each compiling process has delay
my guess this problem arises when windows 11 update change behaviour, when the first time you used reflex run
windows UAC dialog appears on the screen asking for permission
extra note, opening localhost:8000/docs
its working fine
windows UAC
Hey @gunungpw out of curiosity, do you happen to remember what permission specifically the UAC dialog was asking to grant access? Is it the python executable?
Also after granting access, does the issue still persist? or are you able to access the page content in the browser now?
Hey, I'm experiencing the same issue. Here's the UAC dialog.
I tried checking all the boxes above, still doesn't work.
On my Windows laptop, I tried Google Chrome and MS Edge, still no difference. But when I get onto my Mac, the problem doesn't exist anymore.
Reflex version before 0.4.0 doesn't seems to have this problem in my experience.
Hey, I'm experiencing the same issue. Here's the UAC dialog.
I tried checking all the boxes above, still doesn't work.
On my Windows laptop, I tried Google Chrome and MS Edge, still no difference. But when I get onto my Mac, the problem doesn't exist anymore.
Reflex version before 0.4.0 doesn't seem to have this problem in my experience.
start times on Windows seem to take long and give the impression of the page not being accessible. Just to have a better sense that this is not the case, can you run reflex in debug mode reflex run --loglevel debug
and show the complete output? Also, if you wait till the app runs and see Debug: ready in xs
(where x is an actual number and s
is the seconds SI unit) in your console, are you able to access the content of the page?
As a side note, we recently released a new version 0.4.1
to fix a reload issue on Windows. can you also give that a shot to see if the issue persists?
Thank you for addressing the issue. I've installed reflex 0.4.1, but seems like the issue still persists. Here's the screenshot:
When running reflex run --loglevel debug
for the first time, seems like it took 2.7s. Then I tried to make some minor changes, saved the code, but seems like the issue still persists. The code compiled to 100%, and it just stopped there, for about 5 minutes, I get this screen ( I also get the same screen when do Ctrl + R to hard refresh at anytime):
@tien-tran0906 Can you try with python3.11 instead of 3.12. Uvicorn still has some issues with 3.12 support on windows. Not clear when they will be able to fix them.
I got same problem with reflex 0.4.1 and Python 3.12, will try Python 3.11
IT WORKS! I tried with Python 3.11.7. Got the complied time and page auto reload is just fine:
The problem is gone when using 3.11. reloading works fine when editing file. Thank you all, have a nice day.
I believe uvicorn-0.22.0
broke windows reload support on python < 3.12. So it might be theoretically possible to use the newer uvicorn only on py3.12 if we can test sufficiently, and keep the older uvicorn for previous python versions.
The team will keep an eye on this issue. Thanks for testing and reporting back.
Describe the bug A clear and concise description of what the bug is.
reflex run
does not respond when live-reload and sometimes lagging when open localhost is browserTo Reproduce Steps to reproduce the behavior:
reflex init
# choose blankreflex run
hanging when opening link localhost:3000Expected behavior A clear and concise description of what you expected to happen. Reflex running "fine" when live-reloading
Screenshots If applicable, add screenshots to help explain your problem.
Specifics (please complete the following information):
3.12, 3.11, 3.10
0.3.10a2, 0.3.9
Additional context Add any other context about the problem here.
`reflex run --loglevel debug`
~\Projects\werna-web via v3.12.0 (.venv) ❯ reflex run --loglevel debug ``` ────────────────────────────────── System Info ────────────────────────────────── Debug: Config file: 'C:\\Users\\Acer\\Projects\\werna-web\\.venv\\Lib\\site-packages\\reflex\\config. py' Debug: Config: app_name='werna_web' loglevel=REF-1842