Skip to content

Commit f9b3906

Browse files
author
Anton Karpets
authored
🐛Source Klaviyo: add error handler for 5XX status codes (#38010)
1 parent c9c5acb commit f9b3906

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

airbyte-integrations/connectors/source-klaviyo/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data:
88
definitionId: 95e8cffd-b8c4-4039-968e-d32fb4a69bde
99
connectorBuildOptions:
1010
baseImage: docker.io/airbyte/python-connector-base:1.2.0@sha256:c22a9d97464b69d6ef01898edf3f8612dc11614f05a84984451dde195f337db9
11-
dockerImageTag: 2.6.0
11+
dockerImageTag: 2.6.1
1212
dockerRepository: airbyte/source-klaviyo
1313
githubIssueLabel: source-klaviyo
1414
icon: klaviyo.svg

airbyte-integrations/connectors/source-klaviyo/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "2.6.0"
6+
version = "2.6.1"
77
name = "source-klaviyo"
88
description = "Source implementation for Klaviyo."
99
authors = [ "Airbyte <[email protected]>",]

airbyte-integrations/connectors/source-klaviyo/source_klaviyo/manifest.yaml

+17-12
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,23 @@ definitions:
1818
authenticator: "#/definitions/authenticator"
1919
http_method: GET
2020
error_handler:
21-
type: DefaultErrorHandler
22-
backoff_strategies:
23-
- type: WaitTimeFromHeader
24-
header: "Retry-After"
25-
response_filters:
26-
- type: HttpResponseFilter
27-
action: FAIL
28-
http_codes: [401, 403]
29-
error_message: Please provide a valid API key and make sure it has permissions to read specified streams.
30-
- type: HttpResponseFilter
31-
action: RETRY
32-
http_codes: [429]
21+
type: CompositeErrorHandler
22+
error_handlers:
23+
- type: DefaultErrorHandler
24+
backoff_strategies:
25+
- type: WaitTimeFromHeader
26+
header: "Retry-After"
27+
response_filters:
28+
- type: HttpResponseFilter
29+
action: RETRY
30+
http_codes: [429]
31+
- type: DefaultErrorHandler # adding this DefaultErrorHandler for 5XX error codes
32+
- type: DefaultErrorHandler
33+
response_filters:
34+
- type: HttpResponseFilter
35+
action: FAIL
36+
http_codes: [401, 403]
37+
error_message: Please provide a valid API key and make sure it has permissions to read specified streams.
3338
request_headers:
3439
Accept: "application/json"
3540
Revision: "2023-10-15"

docs/integrations/sources/klaviyo.md

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Stream `Lists Detailed` contains field `profile_count` in addition to info from
6969

7070
| Version | Date | Pull Request | Subject |
7171
|:---------|:-----------|:-----------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------|
72+
| `2.6.1` | 2024-05-07 | [38010](https://github.com/airbytehq/airbyte/pull/38010) | Add error handler for `5XX` status codes |
7273
| `2.6.0` | 2024-04-19 | [37370](https://github.com/airbytehq/airbyte/pull/37370) | Add streams `campaigns_detailed` and `lists_detailed` |
7374
| `2.5.0` | 2024-04-15 | [36264](https://github.com/airbytehq/airbyte/pull/36264) | Migrate to low-code |
7475
| `2.4.0` | 2024-04-11 | [36989](https://github.com/airbytehq/airbyte/pull/36989) | Update `Campaigns` schema |

0 commit comments

Comments
 (0)