Describe the problem/error/question
Logs say workflow had an error, but UI still shows as running indefinitely.
What is the error message (if any)?
{
"__type": "$$EventMessageNode",
"id": "2b5a004f-4ba2-4fdd-8281-cd8b46bcd520",
"ts": "2025-09-07T21:08:17.548-04:00",
"eventName": "n8n.node.finished",
"message": "n8n.node.finished",
"payload": {
"workflowId": "qqGtGPAExcyvurQ0",
"workflowName": "Tool-CreateRepository",
"executionId": "417",
"nodeType": "n8n-nodes-base.code",
"nodeName": "CreateQuery",
"nodeId": "34ce8222-417a-4dba-950e-fa580a37f005"
}
}
{
"__type": "$$EventMessageWorkflow",
"id": "4d8e00f6-4e6c-4f44-9333-088112563cc2",
"ts": "2025-09-07T21:08:17.653-04:00",
"eventName": "n8n.workflow.failed",
"message": "n8n.workflow.failed",
"payload": {
"userId": "56ceca28-fded-4c1e-80b9-7bb70ac506e9",
"executionId": "417",
"success": false,
"isManual": true,
"workflowId": "qqGtGPAExcyvurQ0",
"workflowName": "Tool-CreateRepository",
"lastNodeExecuted": "CreateQuery",
"errorNodeType": "n8n-nodes-base.code",
"errorMessage": "r.json.chunk.replace is not a function [line 5]"
}
}
{
"__type": "$$EventMessageWorkflow",
"id": "42921af6-2e2e-4c2b-abf7-f2b23cc30865",
"ts": "2025-09-07T21:08:31.450-04:00",
"eventName": "n8n.workflow.failed",
"message": "n8n.workflow.failed",
"payload": {
"userId": "56ceca28-fded-4c1e-80b9-7bb70ac506e9",
"executionId": "417",
"success": false,
"isManual": true,
"workflowId": "qqGtGPAExcyvurQ0",
"workflowName": "Tool-CreateRepository",
"lastNodeExecuted": "CreateQuery",
"errorMessage": "Invalid string length"
}
}
Share the output returned by the last node
Invalid string length"
Information on your n8n setup
- n8n version: 1.109.2
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: Debian 12 Bookworm
