N8n webhooks with Grist not working

What app is this about, and its version: n8n 2.22.6~ynh1
What YunoHost version are you running: 12.1.40.1 (stable)
What type of hardware are you using: VPS bought online

Describe your issue

Grist : 1.7.13~ynh1

Hello, I’ve well set up my webhook in grist with allowed domain. When I hit test on n8n and I do an action on Grist it triggers something but all I get is an error on both side.

On grist side I get :

{"status":"retrying","numWaiting":1,"updatedTime":1780487563334,"lastEventBatch":{"status":"failure","httpStatus":404,"errorMessage":"{\"code\":404,\"message\":\"The requested webhook \\\"94d0fbf1-5451-414b-8f19-b44794452596\\\" is not registered.\",\"hint\":\"Click the 'Execute workflow' button on the canvas, then try again. (In test mode, the webhook only works for one call after you click this button)\"}","size":1,"attempts":9},"lastSuccessTime":null,"lastFailureTime":1780487563334,"lastErrorMessage":"{\"code\":404,\"message\":\"The requested webhook \\\"94d0fbf1-5451-414b-8f19-b44794452596\\\" is not registered.\",\"hint\":\"Click the 'Execute workflow' button on the canvas, then try again. (In test mode, the webhook only works for one call after you click this button)\"}","lastHttpStatus":404}

As if the webhook wasn’t registered in n8n even though it seems I’ve followed all the instructions on that side.

And on the n8n side I have an output in the webhook node with this error:

TypeError: Cannot read properties of undefined (reading 'getNode') at WebhookContext.webhook (/var/www/n8n/node_modules/n8n-nodes-base/nodes/Webhook/Webhook.node.ts:217:64) at WebhookService.runWebhook (/var/www/n8n/node_modules/n8n/src/webhooks/webhook.service.ts:466:30) at Object.executeWebhook (/var/www/n8n/node_modules/n8n/src/webhooks/webhook-helpers.ts:547:60) at processTicksAndRejections (node:internal/process/task_queues:103:5) at /var/www/n8n/node_modules/n8n/src/webhooks/test-webhooks.ts:153:26

Has anyone encountered this problem before?
Any ideas how to make this work?

I read here that there were problems at one point, but I’m up to date with the latest version: N8n: webhooks don't work anymore

Any thoughts, @jln maybe?

Share relevant logs or error messages

//

Just updated to 2.23.2. Still, same problem. :confused:

Hi, are visitors granted access to the Grist API?

Hello, thank you for your answer.

And yes, it’s in the visitor permission (as it is by default) :