We recently deployed a Prefect Orion server on one of our servers, due to failure of Prefect Cloud. The connection to the server is fast, but the prefect agent still occasionally disconnects to the Prefect Orion server, raising HTTP errors. Is this normal and will it affect the flow runs?
The error message is listed below:
13:25:44.742 | ERROR | prefect.agent -
Traceback (most recent call last):
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\backends\asyncio.py", line 33, in read
return await self._stream.receive(max_bytes=max_bytes)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\anyio\_backends\_asyncio.py", line 1265, in receive
await self._protocol.read_event.wait()
File "D:\Anaconda3\envs\pe_1.5\lib\asyncio\locks.py", line 214, in wait
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_exceptions.py", line 8, in map_exceptions
yield
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\backends\asyncio.py", line 31, in read
with anyio.fail_after(timeout):
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\anyio\_core\_tasks.py", line 118, in __exit__
raise TimeoutError
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_transports\default.py", line 60, in map_httpcore_exceptions
yield
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_async\connection_pool.py", line 253, in handle_async_request
raise exc
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_async\connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_async\connection.py", line 90, in handle_async_request
return await self._connection.handle_async_request(request)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_async\http11.py", line 105, in handle_async_request
raise exc
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_async\http11.py", line 84, in handle_async_request
) = await self._receive_response_headers(**kwargs)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_async\http11.py", line 148, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_async\http11.py", line 177, in _receive_event
data = await self._network_stream.read(
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\backends\asyncio.py", line 30, in read
with map_exceptions(exc_map):
File "D:\Anaconda3\envs\pe_1.5\lib\contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpcore\_exceptions.py", line 12, in map_exceptions
raise to_exc(exc)
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\prefect\agent.py", line 154, in get_and_submit_flow_runs
queue_runs = await self.client.get_runs_in_work_queue(
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\prefect\client\orion.py", line 759, in get_runs_in_work_queue
response = await self._client.post(
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_client.py", line 1842, in post
return await self.request(
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_client.py", line 1527, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\prefect\client\base.py", line 159, in send
await super().send(*args, **kwargs)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_client.py", line 1614, in send
response = await self._send_handling_auth(
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_client.py", line 1642, in _send_handling_auth
response = await self._send_handling_redirects(
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_client.py", line 1679, in _send_handling_redirects
response = await self._send_single_request(request)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_client.py", line 1716, in _send_single_request
response = await transport.handle_async_request(request)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_transports\default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "D:\Anaconda3\envs\pe_1.5\lib\contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "D:\Anaconda3\envs\pe_1.5\lib\site-packages\httpx\_transports\default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout