diff --git a/connectors/src/lib/data_sources.ts b/connectors/src/lib/data_sources.ts index 197051b36d12..6e13e5ff634f 100644 --- a/connectors/src/lib/data_sources.ts +++ b/connectors/src/lib/data_sources.ts @@ -858,7 +858,8 @@ export async function upsertTableFromCsv({ if (dustRequestResult.status === 413) { throw new TablesError( "file_too_large", - dustRequestResult.data.error.message + dustRequestResult.data.error?.message || + "File size exceeds the maximum limit" ); } throw new Error(