mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
chore: Stop reporting AxiosError
to Sentry (#10974)
This commit is contained in:
parent
9fc3699beb
commit
262693be65
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue