Having issues of "refectHTTPStatusError: Client error '404 Not Found' for url 'http://ephemeral-prefect/api/flow_runs/..." using prefect_gcp

Hello! I facing a problem while trying to replicate this tutorial.

Running locally the Prefect server + the agent, created the GCS block, the Cloud Run block and the credentials block.

When I start the flow run it is submitted to the Flow Run Job, then this error appears on the logs:

Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/prefect/client/orchestration.py", line 1702, in read_flow_run response = await self._client.get(f"/flow_runs/{flow_run_id}") File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1751, in get return await self.request( File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1527, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/usr/local/lib/python3.10/site-packages/prefect/client/base.py", line 285, in send response.raise_for_status() File "/usr/local/lib/python3.10/site-packages/prefect/client/base.py", line 138, in raise_for_status raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__ prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url 'http://ephemeral-prefect/api/flow_runs/c7247fff-d1dd-424d-bfc5-2c69e74326b0'

A non error message appears as:

Response: {'detail': 'Flow run not found'}

My flow was not deleted and still there, I believe the answers lies on a deleted post mentioned here

Hi @Alexsandr0x,

Where is the cloud-run job obtaining the code from? I suppose it’s on the local file system hence the error.

I’m not sure to be honest, I thought that Prefect would handle this. I based all my implementation with these two sources: