From 4a20e5ef8f240552cba158a966f4517ae3aa639b Mon Sep 17 00:00:00 2001 From: darynaishchenko Date: Wed, 12 Nov 2025 16:03:59 +0200 Subject: [PATCH 1/2] update error message for FileSizeLimitError --- airbyte_cdk/sources/file_based/file_based_stream_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte_cdk/sources/file_based/file_based_stream_reader.py b/airbyte_cdk/sources/file_based/file_based_stream_reader.py index 4c0cb7c9e..71371c3db 100644 --- a/airbyte_cdk/sources/file_based/file_based_stream_reader.py +++ b/airbyte_cdk/sources/file_based/file_based_stream_reader.py @@ -172,7 +172,7 @@ def upload( file_size = file.size if file_size > self.FILE_SIZE_LIMIT: - message = f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit." + message = f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit. File URI: {file.uri}" raise FileSizeLimitError( message=message, internal_message=message, failure_type=FailureType.config_error ) From e1415cba32d62c8746ff90629f9caa6bddf7ac56 Mon Sep 17 00:00:00 2001 From: octavia-squidington-iii Date: Wed, 12 Nov 2025 14:32:02 +0000 Subject: [PATCH 2/2] Auto-fix lint and format issues --- airbyte_cdk/sources/file_based/file_based_stream_reader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/airbyte_cdk/sources/file_based/file_based_stream_reader.py b/airbyte_cdk/sources/file_based/file_based_stream_reader.py index 71371c3db..f97bc3f9a 100644 --- a/airbyte_cdk/sources/file_based/file_based_stream_reader.py +++ b/airbyte_cdk/sources/file_based/file_based_stream_reader.py @@ -172,7 +172,9 @@ def upload( file_size = file.size if file_size > self.FILE_SIZE_LIMIT: - message = f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit. File URI: {file.uri}" + message = ( + f"File size exceeds the {self.FILE_SIZE_LIMIT / 1e9} GB limit. File URI: {file.uri}" + ) raise FileSizeLimitError( message=message, internal_message=message, failure_type=FailureType.config_error )