https://prefect.io logo
Title
t

Taylor Babin

04/28/2023, 2:40 PM
Hi everyone, When i'm running my prefect agent i'm running into this issue
raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__  
prefect.exceptions.PrefectHTTPStatusError: Server error '503 Service Unavailable' for url 
For more information <https://httpstatuses.com/503>
and then my agent stops running is there a way to make sure my agent doesn't shut down? This has happened more than once and not sure if there's a a way to prevent this from happening?
z

Zanie

04/28/2023, 3:00 PM
On the latest version we added automatic retries on 503s
t

Taylor Babin

04/28/2023, 3:00 PM
do you have the docs for that and how to use it?
Also is there a reason why these errors occur?
Was the cloud service down and it couldn't connect? @Zanie
z

Zanie

04/28/2023, 3:10 PM
There are a lot of reasons a 503 can occur, but yes generally it means there’s a disruption in the Cloud service or a service between you and Cloud.
It actually looks like we added these retries in 2.4.1 (I thought it was more recent 😄) perhaps your client is exhausting all of the retries
We’ve added generally better handling for 503s in later versions too