From 6e391755e47efc8a10529b24dee5e90c466b20b9 Mon Sep 17 00:00:00 2001 From: agobrech <45268029+agobrech@users.noreply.github.com> Date: Thu, 19 Jan 2023 17:56:31 +0100 Subject: [PATCH] fix(core): Fix url in error handelling for the error Trigger (#5201) * Add workflow id to url in error message * fix mock message for manual execution * Fix url missing 's' --- packages/cli/src/WorkflowExecuteAdditionalData.ts | 4 +++- packages/nodes-base/nodes/ErrorTrigger/ErrorTrigger.node.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/WorkflowExecuteAdditionalData.ts b/packages/cli/src/WorkflowExecuteAdditionalData.ts index 20bc0331d6..a8b0a9ef3e 100644 --- a/packages/cli/src/WorkflowExecuteAdditionalData.ts +++ b/packages/cli/src/WorkflowExecuteAdditionalData.ts @@ -88,7 +88,9 @@ export function executeErrorWorkflow( let pastExecutionUrl: string | undefined; if (executionId !== undefined) { - pastExecutionUrl = `${WebhookHelpers.getWebhookBaseUrl()}execution/${executionId}`; + pastExecutionUrl = `${WebhookHelpers.getWebhookBaseUrl()}workflow/${ + workflowData.id + }/executions/${executionId}`; } if (fullRunData.data.resultData.error !== undefined) { diff --git a/packages/nodes-base/nodes/ErrorTrigger/ErrorTrigger.node.ts b/packages/nodes-base/nodes/ErrorTrigger/ErrorTrigger.node.ts index ab2db4010a..963d23d9fa 100644 --- a/packages/nodes-base/nodes/ErrorTrigger/ErrorTrigger.node.ts +++ b/packages/nodes-base/nodes/ErrorTrigger/ErrorTrigger.node.ts @@ -54,7 +54,7 @@ export class ErrorTrigger implements INodeType { items[0].json = { execution: { id, - url: `${urlParts.join('/')}/${id}`, + url: `${urlParts.join('/')}/workflow/1/${id}`, retryOf: '34', error: { message: 'Example Error Message',