Skip to main content

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.

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
  • anyOf:

    • type: string

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.

$parameters​

  • Required: No
  • type: object