DEV Community

Discussion on: How to handle API downtime with 2 lines of code

Collapse
 
qortex profile image
Michael Monerau

I'm looking for solutions to globally handle 429 errors when doing external API calls (rate-limit reached). I would like failing calls to be retried a few seconds later.

Is your agent a good way to achieve that?

Collapse
 
frenchcooc profile image
Corentin

Yeah! You would need to add the agent to your app; then setup rules & incidents to receive alerts whenever the API calls are failing due to 429 errors.

Feel free to sign-up (it’s free) and get in touch with us using the chat if ever you need.

Collapse
 
qortex profile image
Michael Monerau

Alerts I already have them :)

I would need to have my backend automatically retries the requests after a while.

I will take a deeper look and see if it suits my use case, thanks.

Thread Thread
 
frenchcooc profile image
Corentin

Auto-retries is under active development at Bearer. The documentation will be updated as soon as it's released ;)