Skip to content

Commit c568a05

Browse files
authored
Merge pull request #18 from klaviyo/patch-104
added 104 to retry error
2 parents 234caf3 + 067c561 commit c568a05

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaviyo Python SDK
22

3-
- SDK version: 2.0.0
3+
- SDK version: 2.0.1
44
- API revision: 2023-02-22
55

66
## Helpful Resources

klaviyo_api/wrapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ class KlaviyoAPI:
3636
_STATUS_CODE_SERVICE_UNAVAILABLE = 503
3737
_STATUS_CODE_GATEWAY_TIMEOUT = 504
3838
_STATUS_CODE_A_TIMEOUT_OCCURED = 524
39+
_STATUS_CODE_CONNECTION_RESET_BY_PEER = 104
3940

4041
_RETRY_CODES = {
4142
_STATUS_CODE_TOO_MANY_REQUESTS,
4243
_STATUS_CODE_SERVICE_UNAVAILABLE,
4344
_STATUS_CODE_GATEWAY_TIMEOUT,
44-
_STATUS_CODE_A_TIMEOUT_OCCURED
45+
_STATUS_CODE_A_TIMEOUT_OCCURED,
46+
_STATUS_CODE_CONNECTION_RESET_BY_PEER
4547
}
4648

4749
_CURSOR_SEARCH_TOKENS = ['page%5Bcursor%5D','page[cursor]']

openapi_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "2.0.0"
14+
__version__ = "2.0.1"
1515

1616
# import ApiClient
1717
from openapi_client.api_client import ApiClient

openapi_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'klaviyo-api-python/2.0.0'
80+
self.user_agent = 'klaviyo-api-python/2.0.1'
8181

8282
def __enter__(self):
8383
return self

openapi_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def to_debug_report(self):
410410
"OS: {env}\n"\
411411
"Python Version: {pyversion}\n"\
412412
"Version of the API: 2023-02-22\n"\
413-
"SDK Package Version: 2.0.0".\
413+
"SDK Package Version: 2.0.1".\
414414
format(env=sys.platform, pyversion=sys.version)
415415

416416
def get_host_settings(self):

0 commit comments

Comments
 (0)