From 696c68244a3621d1d1730bd7801bb706bc940fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Popin?= Date: Wed, 13 Nov 2024 11:00:35 +0100 Subject: [PATCH] Connectors: new error for remote db network error (#8610) --- front/components/data_source/DataSourceSyncChip.tsx | 10 ++++++++++ types/src/front/lib/connectors_api.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/front/components/data_source/DataSourceSyncChip.tsx b/front/components/data_source/DataSourceSyncChip.tsx index 3fb7606cc12a..f396b66dc350 100644 --- a/front/components/data_source/DataSourceSyncChip.tsx +++ b/front/components/data_source/DataSourceSyncChip.tsx @@ -116,6 +116,16 @@ export default function ConnectorSyncingChip({ trigger={Synchronization failed} /> ); + case "remote_database_network_error": + return ( + Synchronization failed} + /> + ); default: assertNever(connector.errorType); } diff --git a/types/src/front/lib/connectors_api.ts b/types/src/front/lib/connectors_api.ts index 792fd30c7d06..1c5964c46ea5 100644 --- a/types/src/front/lib/connectors_api.ts +++ b/types/src/front/lib/connectors_api.ts @@ -22,6 +22,7 @@ const CONNECTORS_ERROR_TYPES = [ "webcrawling_error_content_too_large", "webcrawling_error_blocked", "remote_database_connection_not_readonly", + "remote_database_network_error", ] as const; export type ConnectorErrorType = (typeof CONNECTORS_ERROR_TYPES)[number];