Skip to content

Commit

Permalink
fix(core): Do not report to Sentry trigger activation errors from `ET…
Browse files Browse the repository at this point in the history
…IMEDOUT` or `ECONNREFUSED` (no-changelog) (n8n-io#9379)
  • Loading branch information
ivov authored May 17, 2024
1 parent ce3eb12 commit 8069faa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/src/ActiveWorkflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ export class ActiveWorkflows {

throw new WorkflowActivationError(
`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',
},
);
}
}
Expand Down

0 comments on commit 8069faa

Please sign in to comment.