mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
chore: Stop reporting AxiosError to Sentry (#10974)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { GlobalConfig } from '@n8n/config';
|
import { GlobalConfig } from '@n8n/config';
|
||||||
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
||||||
import { QueryFailedError } from '@n8n/typeorm';
|
import { QueryFailedError } from '@n8n/typeorm';
|
||||||
|
import { AxiosError } from 'axios';
|
||||||
import { createHash } from 'crypto';
|
import { createHash } from 'crypto';
|
||||||
import { ErrorReporterProxy, ApplicationError } from 'n8n-workflow';
|
import { ErrorReporterProxy, ApplicationError } from 'n8n-workflow';
|
||||||
import Container from 'typedi';
|
import Container from 'typedi';
|
||||||
@@ -67,6 +68,8 @@ export const initErrorHandling = async () => {
|
|||||||
beforeSend(event, { originalException }) {
|
beforeSend(event, { originalException }) {
|
||||||
if (!originalException) return null;
|
if (!originalException) return null;
|
||||||
|
|
||||||
|
if (originalException instanceof AxiosError) return null;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
originalException instanceof QueryFailedError &&
|
originalException instanceof QueryFailedError &&
|
||||||
['SQLITE_FULL', 'SQLITE_IOERR'].some((errMsg) => originalException.message.includes(errMsg))
|
['SQLITE_FULL', 'SQLITE_IOERR'].some((errMsg) => originalException.message.includes(errMsg))
|
||||||
|
|||||||
Reference in New Issue
Block a user