@Marvin in my prefect 2.20 setup this call:
training_deployment = training_flow.deploy(
name=f"{flow_entrypoint}_on_{workpool}",
work_pool_name=workpool,
image=base_image,
build=False,
push=False,
)
causes this error:
Unexpected error occurred: Block not found.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/prefect/deployments/runner.py", line 318, in apply
deployment_id = await client.create_deployment(**create_payload)
File "/usr/local/lib/python3.10/site-packages/prefect/client/orchestration.py", line 1678, in create_deployment
response = await
self._client.post(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1859, in post
return await self.request(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1540, 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 358, in send
response.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/prefect/client/base.py", line 171, in raise_for_status
raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.
cause
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '
http://10.7.0.20:4200/api/deployments/'
Response: {'detail': 'Block not found.'}
For more information check:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
the flow is correctly retrived