Jane Jeong

08/18/2023, 7:42 PM
How can I avoid getting this error?
Copy code
16:21:19.382 | ERROR   | prefect.agent - Client error '408 Request Timeout' for url '<{id}/workspaces/{id}/work_queues/{id}/get_runs>'
For more information check: <>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/", line 212, in get_and_submit_flow_runs
    queue_runs = await self.client.get_runs_in_work_queue(
  File "/usr/local/lib/python3.10/site-packages/prefect/client/", line 911, in get_runs_in_work_queue
    response = await <|>(
  File "/usr/local/lib/python3.10/site-packages/httpx/", line 1848, in post
    return await self.request(
  File "/usr/local/lib/python3.10/site-packages/httpx/", line 1530, in request
    return await self.send(request, auth=auth, follow_redirects=follow_redirects)
  File "/usr/local/lib/python3.10/site-packages/prefect/client/", line 280, in send
  File "/usr/local/lib/python3.10/site-packages/prefect/client/", line 137, in raise_for_status
    raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Client error '408 Request Timeout' for url '<{id}/workspaces/{id}/work_queues/{id}/get_runs>'


08/18/2023, 7:53 PM
This seems like a networking issue in your infra. We have a fixed 30 second timeout for all HTTP requests (which includes time for your agent/worker to transmit data to Prefect Cloud), and a lot of things can cause this behavior