Skip to content

Commit 283802d

Browse files
Update InvalidURL error handling to retry on temporary DNS failures
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
1 parent eb212b3 commit 283802d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte_cdk/sources/streams/http/error_handlers/default_error_mapping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
error_message="Invalid Protocol Schema: The endpoint that data is being requested from is using an invalid or insecure. Exception: requests.exceptions.InvalidSchema",
2020
),
2121
InvalidURL: ErrorResolution(
22-
response_action=ResponseAction.FAIL,
23-
failure_type=FailureType.config_error,
24-
error_message="Invalid URL specified: The endpoint that data is being requested from is not a valid URL. Exception: requests.exceptions.InvalidURL",
22+
response_action=ResponseAction.RETRY,
23+
failure_type=FailureType.transient_error,
24+
error_message="Temporary DNS resolution error occurred. Retrying...",
2525
),
2626
RequestException: ErrorResolution(
2727
response_action=ResponseAction.RETRY,

0 commit comments

Comments
 (0)