https://prefect.io logo
Title
d

David

04/27/2023, 12:59 PM
Hi all! I'm new to Prefect, and I'm trying to run a Flow and Tasks. I got the below error while running my python script.
RuntimeError: Cannot create flow run. Failed to reach API at <http://127.0.0.1:4200/api/>.
Any ideas on what the problem could be?
g

Giacomo Chiarella

04/27/2023, 1:02 PM
have you set
export PREFECT_API_URL=<url>
?
d

David

04/27/2023, 1:08 PM
I've set it now, and it works.
Although, initially, it worked without me doing so. I only did so before running
prefect orion start