mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(core): Do not report generic webhook execution errors (no-changelog) (#8749)
This commit is contained in:
parent
3cbe1e2136
commit
5f6da7b84e
|
@ -34,6 +34,7 @@ import type {
|
|||
WorkflowExecuteMode,
|
||||
} from 'n8n-workflow';
|
||||
import {
|
||||
ApplicationError,
|
||||
BINARY_ENCODING,
|
||||
createDeferredPromise,
|
||||
ErrorReporterProxy as ErrorReporter,
|
||||
|
@ -807,7 +808,13 @@ export async function executeWebhook(
|
|||
})
|
||||
.catch((e) => {
|
||||
if (!didSendResponse) {
|
||||
responseCallback(new Error('There was a problem executing the workflow'), {});
|
||||
responseCallback(
|
||||
new ApplicationError('There was a problem executing the workflow', {
|
||||
level: 'warning',
|
||||
cause: e,
|
||||
}),
|
||||
{},
|
||||
);
|
||||
}
|
||||
|
||||
throw new InternalServerError(e.message);
|
||||
|
@ -818,7 +825,10 @@ export async function executeWebhook(
|
|||
const error =
|
||||
e instanceof UnprocessableRequestError
|
||||
? e
|
||||
: new Error('There was a problem executing the workflow', { cause: e });
|
||||
: new ApplicationError('There was a problem executing the workflow', {
|
||||
level: 'warning',
|
||||
cause: e,
|
||||
});
|
||||
if (didSendResponse) throw error;
|
||||
responseCallback(error, {});
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue