docs/interfaces/lib.RetryConfiguration.html
Configure the retry logic for http calls. By default, this retries any request that returns a 429 3 times.
interface RetryConfiguration {
enabled?: boolean;
maxRetries?: number;
retryWhen?: number[];
}
Optionalenabledenabled?: boolean
Configure the usage of retries. Defaults to true on the Management Client and false on the Authentication Client.
OptionalmaxRetriesmaxRetries?: number
Configure the max amount of retries the SDK should do. Defaults to 3. Note: this budget is shared between HTTP status code retries (e.g. 429) and transient network error retries (e.g. ECONNRESET). For example, with maxRetries: 3, 2 network retries and 1 status code retry would exhaust the full budget.
OptionalretryWhenretryWhen?: number[]
HTTP Status Codes on which the SDK should trigger retries. Note: transient network errors (ECONNRESET, EPIPE, ECONNABORTED) are always retried up to maxRetries regardless of this setting. Use enabled: false to disable all retries. Defaults to [429].
Member Visibility
ThemeOSLightDark
Properties enabledmaxRetriesretryWhen