mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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'
This commit is contained in:
@@ -88,7 +88,9 @@ export function executeErrorWorkflow(
|
|||||||
|
|
||||||
let pastExecutionUrl: string | undefined;
|
let pastExecutionUrl: string | undefined;
|
||||||
if (executionId !== undefined) {
|
if (executionId !== undefined) {
|
||||||
pastExecutionUrl = `${WebhookHelpers.getWebhookBaseUrl()}execution/${executionId}`;
|
pastExecutionUrl = `${WebhookHelpers.getWebhookBaseUrl()}workflow/${
|
||||||
|
workflowData.id
|
||||||
|
}/executions/${executionId}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fullRunData.data.resultData.error !== undefined) {
|
if (fullRunData.data.resultData.error !== undefined) {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export class ErrorTrigger implements INodeType {
|
|||||||
items[0].json = {
|
items[0].json = {
|
||||||
execution: {
|
execution: {
|
||||||
id,
|
id,
|
||||||
url: `${urlParts.join('/')}/${id}`,
|
url: `${urlParts.join('/')}/workflow/1/${id}`,
|
||||||
retryOf: '34',
|
retryOf: '34',
|
||||||
error: {
|
error: {
|
||||||
message: 'Example Error Message',
|
message: 'Example Error Message',
|
||||||
|
|||||||
Reference in New Issue
Block a user