airbyte-cdk 6.7.1rc2__py3-none-any.whl → 6.7.1rc3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airbyte_cdk/sources/declarative/retrievers/simple_retriever.py +0 -3
- airbyte_cdk/sources/streams/http/http_client.py +1 -9
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc3.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc3.dist-info}/RECORD +7 -7
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc3.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc3.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.7.1rc2.dist-info → airbyte_cdk-6.7.1rc3.dist-info}/entry_points.txt +0 -0
@@ -360,9 +360,6 @@ class SimpleRetriever(Retriever):
|
|
360
360
|
next_page_token = self._next_page_token(response)
|
361
361
|
if not next_page_token:
|
362
362
|
pagination_complete = True
|
363
|
-
# Closing the response to avoid memory issues. Note that this assumes the caller as completely consumed the response before
|
364
|
-
# iterating on another one
|
365
|
-
response.close()
|
366
363
|
|
367
364
|
# Always return an empty generator just in case no records were ever yielded
|
368
365
|
yield from []
|
@@ -43,7 +43,6 @@ from airbyte_cdk.sources.streams.http.rate_limiting import (
|
|
43
43
|
rate_limit_default_backoff_handler,
|
44
44
|
user_defined_backoff_handler,
|
45
45
|
)
|
46
|
-
from airbyte_cdk.utils.airbyte_secrets_utils import filter_secrets
|
47
46
|
from airbyte_cdk.utils.constants import ENV_REQUEST_CACHE_PATH
|
48
47
|
from airbyte_cdk.utils.stream_status_utils import (
|
49
48
|
as_airbyte_message as stream_status_as_airbyte_message,
|
@@ -91,11 +90,9 @@ class HttpClient:
|
|
91
90
|
):
|
92
91
|
self._name = name
|
93
92
|
self._api_budget: APIBudget = api_budget or APIBudget(policies=[])
|
94
|
-
self._is_session_owner = False
|
95
93
|
if session:
|
96
94
|
self._session = session
|
97
95
|
else:
|
98
|
-
self._is_session_owner = True
|
99
96
|
self._use_cache = use_cache
|
100
97
|
self._session = self._request_session()
|
101
98
|
self._session.mount(
|
@@ -120,10 +117,6 @@ class HttpClient:
|
|
120
117
|
self._disable_retries = disable_retries
|
121
118
|
self._message_repository = message_repository
|
122
119
|
|
123
|
-
def __del__(self):
|
124
|
-
if self._is_session_owner:
|
125
|
-
self._session.close()
|
126
|
-
|
127
120
|
@property
|
128
121
|
def cache_filename(self) -> str:
|
129
122
|
"""
|
@@ -368,13 +361,12 @@ class HttpClient:
|
|
368
361
|
|
369
362
|
if error_resolution.response_action == ResponseAction.FAIL:
|
370
363
|
if response is not None:
|
371
|
-
error_message = f"'{request.method}' request to '{request.url}' failed with status code '{response.status_code}' and error message '{response
|
364
|
+
error_message = f"'{request.method}' request to '{request.url}' failed with status code '{response.status_code}' and error message '{self._error_message_parser.parse_response_error_message(response)}'"
|
372
365
|
else:
|
373
366
|
error_message = (
|
374
367
|
f"'{request.method}' request to '{request.url}' failed with exception: '{exc}'"
|
375
368
|
)
|
376
369
|
|
377
|
-
self._logger.warning(filter_secrets(error_message))
|
378
370
|
raise MessageRepresentationAirbyteTracedErrors(
|
379
371
|
internal_message=error_message,
|
380
372
|
message=error_resolution.error_message or error_message,
|
@@ -155,7 +155,7 @@ airbyte_cdk/sources/declarative/requesters/requester.py,sha256=9LWbCkHpr7GWTkPvY
|
|
155
155
|
airbyte_cdk/sources/declarative/retrievers/__init__.py,sha256=FVQpUGVwp2Gibk4gp07VmLKX5AafUlsZWFSrDpUDuJM,443
|
156
156
|
airbyte_cdk/sources/declarative/retrievers/async_retriever.py,sha256=iNe8Ihrk4vClCNtnEjtMUjjUoNo0UceYUFV7yAcXCU0,4965
|
157
157
|
airbyte_cdk/sources/declarative/retrievers/retriever.py,sha256=XPLs593Xv8c5cKMc37XzUAYmzlXd1a7eSsspM-CMuWA,1696
|
158
|
-
airbyte_cdk/sources/declarative/retrievers/simple_retriever.py,sha256=
|
158
|
+
airbyte_cdk/sources/declarative/retrievers/simple_retriever.py,sha256=j09j4ngVDGosEVVEQk_joejAXm6dBfr45ulElhz2ZoA,23931
|
159
159
|
airbyte_cdk/sources/declarative/schema/__init__.py,sha256=ul8L9S0-__AMEdbCLHBq-PMEeA928NVp8BB83BMotfU,517
|
160
160
|
airbyte_cdk/sources/declarative/schema/default_schema_loader.py,sha256=KTACrIE23a83wsm3Rd9Eb4K6-20lrGqYxTHNp9yxsso,1820
|
161
161
|
airbyte_cdk/sources/declarative/schema/inline_schema_loader.py,sha256=bVETE10hRsatRJq3R3BeyRR0wIoK3gcP1gcpVRQ_P5U,464
|
@@ -274,7 +274,7 @@ airbyte_cdk/sources/streams/http/error_handlers/json_error_message_parser.py,sha
|
|
274
274
|
airbyte_cdk/sources/streams/http/error_handlers/response_models.py,sha256=7AX6sm8hMfVtcZuUrCmGmNFsO5rDK9Ecg2Kzl6rQwrk,2235
|
275
275
|
airbyte_cdk/sources/streams/http/exceptions.py,sha256=njC7MlMJoFYcSGz4mIp6-bqLFTr6vC8ej25X0oSeyjE,1824
|
276
276
|
airbyte_cdk/sources/streams/http/http.py,sha256=XoUvIClYO96datz_lBPBBY6uWmCja2mUk_yERdjskQo,28466
|
277
|
-
airbyte_cdk/sources/streams/http/http_client.py,sha256=
|
277
|
+
airbyte_cdk/sources/streams/http/http_client.py,sha256=EhB9An8wA9wkoNBxTPfHGwmL_-jJVLUl6uFgkY6Fcho,19125
|
278
278
|
airbyte_cdk/sources/streams/http/rate_limiting.py,sha256=IwdjrHKUnU97XO4qONgYRv4YYW51xQ8SJm4WLafXDB8,6351
|
279
279
|
airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py,sha256=RN0D3nOX1xLgwEwKWu6pkGy3XqBFzKSNZ8Lf6umU2eY,413
|
280
280
|
airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py,sha256=r6KvG6V-bzhnCGwLqnxngrjGM0UrvD1dRo8knatuAH0,10320
|
@@ -331,8 +331,8 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EemcgcQlI8-LPYOPlYv4Qkdjyho79XVLWaUHF5X
|
|
331
331
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=LVc9KbtMeV_z99jWo0Ou8u4l6eBJ0BWNhxj4zrrGKRs,763
|
332
332
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
333
333
|
airbyte_cdk/utils/traced_exception.py,sha256=89TQdFuYZ1NJgmFpqLzY_T_T_64TpJYmVqs119Bp43g,6164
|
334
|
-
airbyte_cdk-6.7.
|
335
|
-
airbyte_cdk-6.7.
|
336
|
-
airbyte_cdk-6.7.
|
337
|
-
airbyte_cdk-6.7.
|
338
|
-
airbyte_cdk-6.7.
|
334
|
+
airbyte_cdk-6.7.1rc3.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
335
|
+
airbyte_cdk-6.7.1rc3.dist-info/METADATA,sha256=30Cxq3db7GZ-C8f9O_upnnu24ohOqsW5epbzvlvsJw0,13345
|
336
|
+
airbyte_cdk-6.7.1rc3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
337
|
+
airbyte_cdk-6.7.1rc3.dist-info/entry_points.txt,sha256=fj-e3PAQvsxsQzyyq8UkG1k8spunWnD4BAH2AwlR6NM,95
|
338
|
+
airbyte_cdk-6.7.1rc3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|