You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.error(f"File {file.uri} has unsupported type: {error_message}")
143
143
raiseAirbyteTracedException(
@@ -194,15 +194,16 @@ def parse_records(
194
194
# RecordParseError is raised when the file can't be parsed because of a problem with the file content (either the file is not supported or the file is corrupted)
195
195
# if the skip_unprocessable_files flag is set, we log a warning and pass the error as part of the document
196
196
# otherwise, we raise the error to fail the sync
197
+
exception_str=str(e)
197
198
ifformat.skip_unprocessable_files:
198
-
exception_str=str(e)
199
199
logger.warning(
200
200
f"File {file.uri} caused an error during parsing: {exception_str}."
201
201
)
202
+
error_message=f"Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. Contact Support if you need assistance.\nfilename={file.uri} message={exception_str}"
f"File {file.uri} caused an error during parsing: {exception_str}."
227
+
)
228
+
error_message=f"Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. Contact Support if you need assistance.\nfilename={file.uri} message={exception_str}"
0 commit comments