Hello prefect team. We are in the middle of upgrad...
# ask-community
n
Hello prefect team. We are in the middle of upgrading from prefect 2 to 3. I'm having trouble getting the basic usage of a local prefect server working. I start it with:
prefect server start --port 4201
as I have before, but I get this message in the bottom right of the browser:
Copy code
Can't connect to Server API at <http://localhost:4200/api>. Check that it's accessible from your machine.
and nothing shows up in the UI when I run flows. Can anyone help me figure out what is wrong? I have tried on each of 3.4.4, 3.4.5, 3.4.6, and 3.4.7. I can't get this working on any of them
2
It seems like there is a clearly a problem that the browser is complaining about accessing port 4200, when I am running this on 4201, but I'm not sure how to correctly configure it
j
Hey the UI (which can be run separately) has a dedicated setting for connecting to the api. If you run
prefect config set PREFECT_UI_API_URL="<http://127.0.0.1:4201/api>"
first, then the UI knows where to reach the server.
n
ah perfect. thanks