retries |
number |
The number of times to retry an HTTP call. Max allowed retries is 5. |
retryCondition? |
(error) => boolean |
A callback to customize when a retry should occur. By default, retry occurs when there is an HttpError, 429 status code, or response status >= 500. |
retryDelayMs? |
number |
The delay between retries in milliseconds. Defaults to 250 milliseconds. Max allowed retry time (retries * retryDelayMs) is 30 seconds. |
shouldResetTimeout? |
boolean |
Determines if the timeout be reset between each retry, default is false. |