~Not sure if it's just the way I have set my stuff...
# pacc-oct-16-17-2024
m
Not sure if it's just the way I have set my stuff up (I have my virtual environment setup using uv), but following the directions for running the test flow as-is results in an exception for me (
RuntimeError: Failed to reach API at <http://127.0.0.1:4200/api/>
).
I first have to start the prefect server locally (
prefect server start
), then I can run the flow and see the response 200 result. I believe having the server running locally in some way is required to have the test flow run? That's my understanding from the core Prefect docs also.
Didn't see any mention of this in the course tech setup doc, so figured I'd call it out here in case any others hit it ๐Ÿคท Ignore - just go setup and configure your Prefect Cloud account ๐Ÿ™‚
Oops, I didn't set up my Prefect cloud account stuff. That's probably the issue... maybe ignore this ๐Ÿ™‚
Yeah, that was the issue. Ignore me
b
No worries Mike!
You got your
prefect profile
setup with the PREFECT_API_URL?
m
I think it set it automatically when I authenticated
๐Ÿ‘ 2
j
It should run with a local ephemeral server, even if you havenโ€™t authenticated to Prefect Cloud yet.
m
Hmm, it did not for me Jeff.
j
Weโ€™ll make sure everyone is on the correct Prefect version and connected to Cloud during our first lab time.
๐Ÿ‘ 1
upvote 1
What version of Prefect do you have installed?
m
3.0.9
๐Ÿ‘ 1
j
Do you want to file a bug report in the GitHub repository? That would help us see whether this is affecting other folks, too.
m
I can, but FWIW in the Quickstart docs it does indeed say you either need to start a local server or login to the cloud account before running the flow. https://docs-3.prefect.io/3.0/get-started/quickstart
๐Ÿ‘ 1