Estoy intentando realizar una automatización sencilla para probar un nodo webhook de n8n (que tengo instalado en mi ordenador, en local, bajo Windows: n8n v. 1.68.0; node v. 20.27.0 y npm v. 10.9.0) y conectarlo con postman, para lo cual:
-
He configurado el webhook de la siguiente manera: (URL: http://localhost:5678/webhook-test/yo); (Authentication: None); (HTTP Method: POST); (Path: yo); ( Respond: Immediatily); (Response Code: 200); (Options: No properties); (Add option). Al worflow le llame yo. Esta active. Y Test workflow.
-
He configurado el postman de la siguiente manera: POST; (URL: http://localhost:5678/webhook-test/yo); (Headers: Key: Content-Type y Value: application/json); (Body: {“hola” : “mundo”}).
Y me salen los siguientes errores:
El error que me da postman:
{
“code”: 0,
“message”: “Workflow Webhook Error: Workflow could not be started!”,
“stacktrace”: “Error: Workflow Webhook Error: Workflow could not be started!\n at Object.executeWebhook (C:\Users\torre\AppData\Roaming\npm\node_modules\n8n\src\webhooks\webhook-helpers.ts:291:21)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at C:\Users\torre\AppData\Roaming\npm\node_modules\n8n\src\webhooks\test-webhooks.ts:117:25”
}
El error que me da el webhook de n8n:
Cannot read properties of undefined (reading ‘getNodeParameter’)
Error details
Other info
n8n version
1.68.1 (Self Hosted)
Stack trace
TypeError: Cannot read properties of undefined (reading ‘getNodeParameter’) at WebhookContext.webhook (C:\Users\torre\AppData\Roaming\npm\node_modules\n8n-nodes-base\nodes\Webhook\Webhook.node.ts:97:27) at Workflow.runWebhook (C:\Users\torre\AppData\Roaming\npm\node_modules\n8n\node_modules\n8n-workflow\src\Workflow.ts:1265:29) at Object.executeWebhook (C:\Users\torre\AppData\Roaming\npm\node_modules\n8n\src\webhooks\webhook-helpers.ts:258:39) at processTicksAndRejections (node:internal/process/task_queues:95:5) at C:\Users\torre\AppData\Roaming\npm\node_modules\n8n\src\webhooks\test-webhooks.ts:117:25
Soy neófito en esto del N8N. Me puedes ayudar.
Gracias.