{"record":{"id":"408e28775ec221e6","repo":"n8n-io/n8n","slug":"execution-error-408e28","errorCode":"EXECUTION_ERROR","errorMessage":"Unknown error occurred","messagePattern":"Unknown error occurred","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-workflow-builder.ee/src/tools/rename-node.tool.ts","lineNumber":141,"sourceCode":"\t\t\t\treporter.complete(output);\n\t\t\t\treturn createSuccessResponse(config, message, stateUpdates);\n\t\t\t} catch (error) {\n\t\t\t\tlet toolError;\n\n\t\t\t\tif (error instanceof z.ZodError) {\n\t\t\t\t\tconst validationError = new ValidationError('Invalid rename node parameters', {\n\t\t\t\t\t\tfield: error.errors[0]?.path.join('.'),\n\t\t\t\t\t\tvalue: error.errors[0]?.message,\n\t\t\t\t\t});\n\t\t\t\t\ttoolError = {\n\t\t\t\t\t\tmessage: validationError.message,\n\t\t\t\t\t\tcode: 'VALIDATION_ERROR',\n\t\t\t\t\t\tdetails: error.errors,\n\t\t\t\t\t};\n\t\t\t\t} else {\n\t\t\t\t\ttoolError = {\n\t\t\t\t\t\tmessage: error instanceof Error ? error.message : 'Unknown error occurred',\n\t\t\t\t\t\tcode: 'EXECUTION_ERROR',\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\treporter.error(toolError);\n\t\t\t\treturn createErrorResponse(config, toolError);\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tname: RENAME_NODE_TOOL.toolName,\n\t\t\tdescription: `Rename a node in the workflow. This updates the node's display name and automatically updates all connection references.\n\nUSAGE:\nUse this tool when you need to give a node a more descriptive or meaningful name.\n\nPARAMETERS:\n- nodeId: The UUID of the node to rename\n- newName: The new name for the node (must be unique in the workflow)\n","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-workflow-builder.ee/src/tools/rename-node.tool.ts#L123-L159","documentation":"A non-Error, non-ZodError value was thrown inside rename_node. The catch block emits 'Unknown error occurred' with code EXECUTION_ERROR because the thrown value has no .message. Indicates a defect or unexpected rejection shape rather than user input.","triggerScenarios":"A helper (renameNodeInWorkflow, state accessors) throws a non-Error value; a promise rejects with a string/null.","commonSituations":"Bug in the rename state helper updating connections keyed by node name; race on workflow state.","solutions":["Inspect server logs for the raw thrown value.","Reproduce with the workflow JSON, nodeId, and newName.","Report as a bug with full context."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":"function isToolError(v: unknown): v is { message: string; code: string; details?: unknown } {\n  return typeof v === 'object' && v !== null && 'code' in v && 'message' in v;\n}","tryCatchPattern":"const res = await rename_node.invoke(input);\nif (isToolError(res) && res.code === 'EXECUTION_ERROR' && res.message === 'Unknown error occurred') {\n  // defect path: log nodeId + newName + workflow JSON, do not blindly retry\n}","preventionTips":["Treat EXECUTION_ERROR with 'Unknown error occurred' as a bug, not a user error.","Capture nodeId, newName, and workflow JSON for reproducible reports.","Do not retry the identical invocation; change the input or report the failure."],"tags":["workflow-builder","bug","unhandled","execution"],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}