Thet Naing
02/26/2023, 9:04 PMprefect.exceptions.PrefectHTTPStatusError: Client error '422 Unprocessable Entity' for url '<https://api.prefect.cloud/api/accounts/abc/workspaces/xyz/deployments/None>'
Response: {'exception_message': 'Invalid request received.', 'exception_detail': [{'loc': ['path', 'id'], 'msg': 'value is not a valid uuid', 'type': 'type_error.uuid'}], 'request_body': None}
For more information check: <https://httpstatuses.com/422>
16:00:39.141 | ERROR | prefect.agent - Failed to get infrastructure for flow run 'abc'. Flow run cannot be cancelled.
Traceback (most recent call last):
File "/Users/thet/SystemInternal/information-extraction-pipeline/venv/lib/python3.10/site-packages/prefect/agent.py", line 322, in cancel_run
infrastructure = await self.get_infrastructure(flow_run)
File "/Users/thet/SystemInternal/information-extraction-pipeline/venv/lib/python3.10/site-packages/prefect/agent.py", line 381, in get_infrastructure
deployment = await self.client.read_deployment(flow_run.deployment_id)
File "/Users/thet/SystemInternal/information-extraction-pipeline/venv/lib/python3.10/site-packages/prefect/client/orchestration.py", line 1504, in read_deployment
response = await self._client.get(f"/deployments/{deployment_id}")
File "/Users/thet/SystemInternal/information-extraction-pipeline/venv/lib/python3.10/site-packages/httpx/_client.py", line 1757, in get
return await self.request(
File "/Users/thet/SystemInternal/information-extraction-pipeline/venv/lib/python3.10/site-packages/httpx/_client.py", line 1533, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/Users/thet/SystemInternal/information-extraction-pipeline/venv/lib/python3.10/site-packages/prefect/client/base.py", line 253, in send
response.raise_for_status()
File "/Users/thet/SystemInternal/information-extraction-pipeline/venv/lib/python3.10/site-packages/prefect/client/base.py", line 130, in raise_for_status
raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
Christopher Boyd
02/27/2023, 7:55 PMBianca Hoch
02/28/2023, 4:26 PMThet Naing
02/28/2023, 8:03 PM