From 2dc3ff49d739c087b7c86535f410096e962b509d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Thu, 25 Jul 2024 14:31:44 +0200 Subject: [PATCH] ci: Stop reporting to Sentry `SQLITE_FULL` errors (no-changelog) (#10183) --- packages/cli/src/ErrorReporting.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/cli/src/ErrorReporting.ts b/packages/cli/src/ErrorReporting.ts index 33a1da0c39..ceb67fe7fb 100644 --- a/packages/cli/src/ErrorReporting.ts +++ b/packages/cli/src/ErrorReporting.ts @@ -1,6 +1,8 @@ import { createHash } from 'crypto'; import config from '@/config'; import { ErrorReporterProxy, ApplicationError } from 'n8n-workflow'; +// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import +import { QueryFailedError } from '@n8n/typeorm'; let initialized = false; @@ -65,6 +67,13 @@ export const initErrorHandling = async () => { addEventProcessor((event, { originalException }) => { if (!originalException) return null; + if ( + originalException instanceof QueryFailedError && + originalException.message.includes('SQLITE_FULL') + ) { + return null; + } + if (originalException instanceof ApplicationError) { const { level, extra, tags } = originalException; if (level === 'warning') return null;