Skip to content

Commit

Permalink
Connectors: new error for remote db network error (#8610)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Nov 13, 2024
1 parent 1051fb7 commit 696c682
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions front/components/data_source/DataSourceSyncChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ export default function ConnectorSyncingChip({
trigger={<Chip color="warning">Synchronization failed</Chip>}
/>
);
case "remote_database_network_error":
return (
<Tooltip
label={
"We encountered a network error while trying to connect to your database." +
"Please check your network connection and try again."
}
trigger={<Chip color="warning">Synchronization failed</Chip>}
/>
);
default:
assertNever(connector.errorType);
}
Expand Down
1 change: 1 addition & 0 deletions types/src/front/lib/connectors_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 696c682

Please sign in to comment.