reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Unable to view website in development mode.

Open rohitsathish opened this issue 2 years ago β€’ 3 comments

I setup the basic structure without changes using pc init, so there's no issues on the code side. Then when I enter pc run it installs the frontend packages and declares that the app is running. Screenshot below - image

When I navigate to the URL, the site refuses to load with the following error - ERR_CONNECTION_REFUSED, localhost refused to connect.

It might be because I have installed pynecone in a conda virtual environment. Another user on Discord had the same issue when using conda.

  • Python Version: 3.10.9
  • Pynecone Version: 0.1.19
  • OS: Windows
  • Browser (Optional): Chrome
  • Virtual Env Package: Conda

rohitsathish avatar Mar 13 '23 07:03 rohitsathish

Ok thanks for pointing this out, I haven't experience this problem but we'll try and recreate it with conda.

Alek99 avatar Mar 14 '23 04:03 Alek99

Sure. I'm having trouble running the local server on conda and venv. Even without a virtual environment, I get the same error. It works when using WSL though.

rohitsathish avatar Mar 14 '23 05:03 rohitsathish

I am using WSL and nothing else special. Not using venv, not using conda or anything. I also cannot establish a connection to the default site on localhost:3000 using http or https. Chrome just states SSL error and wont load it. It DOES however, load in EDGE just fine. Seems to be a chrome issue.

Edit: in chrome if you go to chrome://net-internals/#hsts and then type localhost into the last box for delete domain policy, then reload http://localhost:3000 (make sure it isnt httpS://localhost:3000) then it will work.

Narzard avatar Mar 20 '23 21:03 Narzard

I believe this should work in the latest reflex release, feel free to reopen if you face futher issues

ElijahAhianyo avatar Aug 18 '23 13:08 ElijahAhianyo