fix(core): Do not report to Sentry trigger activation errors from ETIMEDOUT or ECONNREFUSED (no-changelog) (#9379)

This commit is contained in:
Iván Ovejero 2024-05-17 09:39:44 +02:00 committed by GitHub
parent ce3eb12a6b
commit 8069faa5fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',
},
);
}
}