n8n
n8n copied to clipboard
Form trigger error in queue mode deployment
Bug Description
https://github.com/n8n-io/n8n/blob/9b3ac1648f1888d79079fd50998140fd27efae97/packages/cli/src/Server.ts#L95-L104
In main server, it register the view engine. But
https://github.com/n8n-io/n8n/blob/9b3ac1648f1888d79079fd50998140fd27efae97/packages/cli/src/WebhookServer.ts#L5-L9
In WebhookServer
, it doesn't register view engine, which cause /form/:path
showing error like
{
"errorMessage": "No default engine was specified and no extension was provided.",
"errorDetails": {},
"n8nDetails": {
"n8nVersion": "1.39.0 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"Error: No default engine was specified and no extension was provided.",
" at new View (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/express/lib/view.js:61:11)",
" at Function.render (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/express/lib/application.js:587:12)",
" at ServerResponse.render (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/express/lib/response.js:1048:7)",
" at formWebhook (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/n8n-nodes-base/dist/nodes/Form/utils.js:98:13)",
" at Object.webhook (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/n8n-nodes-base/dist/nodes/Form/v2/FormTriggerV2.node.js:89:46)",
" at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/file+packages+workflow/node_modules/n8n-workflow/dist/Workflow.js:665:38)",
" at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:226:48)",
" at processTicksAndRejections (node:internal/process/task_queues:95:5)"
]
}
}
To Reproduce
- Deploy the n8n in queue mode
- Make a workflow with
Form Trigger
- Activate it and goto the form link like
http://domain.ltd/form/:path
- A 404 error occure and an error shows in the execution history
Expected behavior
The form page show
Operating System
Docker
n8n Version
1.39.0/nightly
Node.js Version
v18.19.1
Database
PostgreSQL
Execution mode
queue
Hey @Yoshino-s,
This is a duplicate of https://github.com/n8n-io/n8n/issues/7538 so for now I am going to close this one.
My mistake this is a different issue....
Edit: Actually looking again I think it is the same, I have added this to the existing NODE-888
ticket anyway to handle it and check your PR.
Fix got released with [email protected]