I am trying to build a custom node for n8n and I am following this tutorial.
When running the workflow execution does not end and keeps spinning with no errors. When pressing the pause button the error in the browser’s console is TypeError: Cannot read properties of undefined (reading 'workflowData')
and the terminal’s output is ERROR RESPONSE ResponseError: Execution not found at /usr/lib/node_modules/n8n/src/Server.ts:2378:12 at /usr/lib/node_modules/n8n/src/ResponseHelper.ts:155:17 { httpStatusCode: 404 } Attempt to read execution was blocked due to insufficient permissions
When I stop the server with cmd+C executions green and shows that it’s complete but only after killing the processs.
The workflow I am testing is just a function node that returns a value but same happens even without any nodes.
To share my exact process since I am new to JS/TS and maybe missing something in the process.
- git clone GitHub - n8n-io/n8n-nodes-starter: Example starter module for custom n8n nodes.
- cd n8n-nodes-starter
- Changed package.json name to n8n-nodes-webinar
- npm install
- npm build
- npm install n8n -g
- linked n8n-nodes-webinar to n8n global installation
- n8n start ( to run the global n8n instance)
I have tried the same process with Windows 10 , WSL on Ubuntu 20.04 on a clean machine and I still get the same error.
No enviromental variables changed , even though I tested the execution process to change it to main with no sucess on changing the error.
- n8n version:latest(0.192.2)
- Database you’re using (default: SQLite):SQLite
- Running n8n with the execution process [own(default), main]:own
- Running n8n via [Docker, npm, n8n.cloud, desktop app]:npm