---
title: "Only 5 retries when API fails? How about 2^53 retries?"
date: 2026-07-29
canonical: https://solmaz.io/x/2082495246672490834/
x_url: https://x.com/onusoz/status/2082495246672490834
license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
---

Only 5 retries when API fails? How about 2^53 retries?

Does exponential backoff with a 10 minute ceiling, so that my sessions keep working even when there are API errors

https://github.com/osolmaz/onurpi/tree/main/packages/infinite-retry
