mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Do not report to Sentry trigger activation errors from ETIMEDOUT
or ECONNREFUSED
(no-changelog) (#9379)
This commit is contained in:
parent
ce3eb12a6b
commit
8069faa5fe
|
@ -92,7 +92,13 @@ export class ActiveWorkflows {
|
||||||
|
|
||||||
throw new WorkflowActivationError(
|
throw new WorkflowActivationError(
|
||||||
`There was a problem activating the workflow: "${error.message}"`,
|
`There was a problem activating the workflow: "${error.message}"`,
|
||||||
{ cause: error, node: triggerNode },
|
{
|
||||||
|
cause: error,
|
||||||
|
node: triggerNode,
|
||||||
|
level: ['ETIMEDOUT', 'ECONNREFUSED'].some((code) => error.message.includes(code))
|
||||||
|
? 'warning'
|
||||||
|
: 'error',
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue