Webhooks not working after upgrade to node.js 20

Describe the problem/error/question

Upgraded our node.js version from 18 to 20.
After the upgrade every workflow ends with an error when the Webhook is triggered.

What is the error message (if any)?

ERROR: Cannot read properties of undefined (reading ‘getNodeParameter’)

TypeError: Cannot read properties of undefined (reading 'getNodeParameter')
    at Object.webhook (/home/node/.n8n/nodes/node_modules/n8n-nodes-base/nodes/Webhook/Webhook.node.ts:99:27)
    at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:638:101)
    at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:213:48)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Information on your n8n setup

  • n8n version: 1.23.0
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Julia!

Welcome to the community! :dizzy:

I would highly suggest that you update to a more recent version of n8n, as we only recently started to support node.js v.20 and this will likely cause you issues. Updating | n8n Docs

If this doesn’t fix it, could you share an example workflow where you get this error and how you’re setting up the node?

Hi!
Thanks a lot for the quick response! We found an issue in one of our declared devDependencies and this solved the problem. Everything is now running smoothly with node 20. But nevertheless we’ll move to a newer version of n8n asap.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.