Webhook errors after updating

Describe the problem/error/question

I noticed that version 1.59.x was available the other day and I was still on version 1.56.2 so i updated it by restarting the container but since then my system now fails all webhook attempts. I’ve been using a simple call from HTTPie with no data just to test but all workflows including a brand new one with nothing but a webhook will work. I tried rolling back to 1.58.1 and then to 1.56.2 but still no change. The timezone, host, domain, subdomain, and webhook URL are all correct and have not changed. I originally used the docker compose example from n8n documentation to set this up.

What is the error message (if any)?

n8n version

1.58.1 (Self Hosted)

Stack trace

TypeError: Cannot read properties of undefined (reading 'getNode') at Object.webhook (/home/node/.n8n/nodes/node_modules/n8n-nodes-base/nodes/Webhook/Webhook.node.ts:182:64) at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:660:38) at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/webhooks/webhook-helpers.js:142:48) at processTicksAndRejections (node:internal/process/task_queues:95:5) at /usr/local/lib/node_modules/n8n/dist/webhooks/test-webhooks.js:99:37

Please share your workflow

{
“meta”: {
“instanceId”: “38839390fa6d0706f248eafbffa9a9de63079a13d41f602a622c4a9553b4bc74”
},
“nodes”: [
{
“parameters”: {
“path”: “6eee961f-cc60-43ac-82df-d155f2f5db4d”,
“options”: {}
},
“id”: “19148196-cddf-4e3e-8810-18a9d4425f9e”,
“name”: “Webhook”,
“type”: “n8n-nodes-base.webhook”,
“typeVersion”: 2,
“position”: [
460,
460
],
“webhookId”: “6eee961f-cc60-43ac-82df-d155f2f5db4d”
}
],
“connections”: {},
“pinData”: {}
}

Share the output returned by the last node

(see error)

Information on your n8n setup

  • n8n version: 1.58.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own?
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 22.04
1 Like

I new install at 1.59.x and now i had been update 1.60.1 and also experience this error too

it seems like you have a completely different version of n8n-nodes-base installed as a community node, which is messing up the webhook functionality.

please delete .n8n/nodes/node_modules/n8n-nodes-base, and restart the container.

2 Likes

This did the trick, thank you!

New version [email protected] got released which includes the GitHub PR 10979.

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