When retries happen
BundleUp retries a request only when all of the following conditions are met. The HTTP method must be idempotent. OnlyGET, HEAD, and OPTIONS requests are retried by default. Write methods such as POST, PUT, PATCH, and DELETE are never retried automatically.
The upstream response must be retryable. BundleUp retries on 429 Too Many Requests responses and on server errors (5xx).
The request must not have exceeded the retry limit. By default, BundleUp performs up to 3 total attempts, which includes the initial request and up to 2 retries.
Custom retry count
You can override the default retry behavior by providing a custom retry count in the request headers.Retry-After support
If the upstream response includes a Retry-After header, BundleUp honors it.Important notes
Retries are only applied to requests that are safe to repeat. BundleUp will never retry non-idempotent requests, even ifBU-Max-Retries is provided.
If all retry attempts fail, the final upstream response is returned to the client.
