DefaultErrorHandler
Component defining how to handle errors. Default behavior includes only retrying server errors (HTTP 5XX) and too many requests (HTTP 429) with an exponential backoff.
- type:
object - required:
["type"]
type
- Required: Yes
- type:
string - enum:
["DefaultErrorHandler"]
backoff_strategies
List of backoff strategies to use to determine how long to wait before retrying a retryable request.
-
Required: No
-
type:
array -
items:
-
anyOf:
- Allowed type:
ConstantBackoffStrategy
- Allowed type:
-
anyOf:
- Allowed type:
ExponentialBackoffStrategy
- Allowed type:
-
anyOf:
- Allowed type:
WaitTimeFromHeader
- Allowed type:
-
anyOf:
- Allowed type:
WaitTimeFromResponse
- Allowed type:
-
anyOf:
- Allowed type:
WaitUntilTimeFromHeader
- Allowed type:
-
anyOf:
- Allowed type:
CustomBackoffStrategy
- Allowed type:
-
max_retries
The maximum number of times to retry a retryable request before giving up and failing. Can be a hardcoded integer or a string interpolated from the connector config.
- Required: No
- default:
5 - Available variables:
config
Examples:
5
0
10
{{ config['max_retries_on_throttle'] }}
-
anyOf:
- type:
integer
- type:
-
anyOf:
- type:
string
- type:
response_filters
List of response filters to iterate on when deciding how to handle an error. When using an array of multiple filters, the filters will be applied sequentially and the response will be selected if it matches any of the filter's predicate.
-
Required: No
-
type:
array -
items:
- Allowed type:
HttpResponseFilter
- Allowed type:
$parameters
- Required: No
- type:
object