Skip to content

Commit

Permalink
Airbyte CDK: ref error handlers
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
  • Loading branch information
artem1205 committed Nov 12, 2024
1 parent de42b45 commit 3ea0f19
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -861,12 +861,15 @@ definitions:
error_handler:
type: DefaultErrorHandler
response_filters:
- http_codes: [400]
- predicate: '{{ response.message == "This profileID is not authorized to use Amazon Attribution" }}'
action: IGNORE
error_message: "{{ response }}"
- predicate: "{{ 'message' in response }}"
action: FAIL
error_message: "{{ response.message }}"
- predicate: "{{ 'code' in response and 'details' in response }}"
action: IGNORE
error_message: "{{ response.code }}; {{ response.details }}"
path: /attribution/report
http_method: POST
request_headers:
Expand Down

0 comments on commit 3ea0f19

Please sign in to comment.