0.221.0 - Webhook crashes

Describe the issue/error/question

Workflow process keep crashing with following error:

UserSettings were generated and saved to: /home/node/.n8n/config
n8n ready on 0.0.0.0, port 5678
Version: 0.221.0
2023-03-23T17:20:45.914Z | e[32minfoe[39m     | e[32mWebhook listener waiting for requests.e[39m "{ file: 'webhook.js', function: 'run' }"
2023-03-23T17:20:48.939Z | e[36mverbosee[39m  | e[36mStart external error workflowe[39m "{\n  executionId: '758198',\n  errorWorkflowId: '6',\n  workflowId: '34',\n  file: 'WorkflowExecuteAdditionalData.js',\n  function: 'executeErrorWorkflow'\n}"
/usr/local/lib/node_modules/n8n/dist/ErrorReporting.js:59
            throw error;
            ^

InternalServerError [ResponseError]: Cannot read properties of undefined (reading 'add')
    at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:423:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Emitted 'error' event on Domain instance at:
    at emit (node:internal/process/promises:138:33)
    at processPromiseRejections (node:internal/process/promises:274:27)
    at processTicksAndRejections (node:internal/process/task_queues:97:32) {
  httpStatusCode: 500,
  errorCode: 500,
  hint: undefined
}

As this occur only on Production, I have rollback to previous version (0.220.1)

Information on your n8n setup

  • n8n version: 0.221.0
  • Database you’re using (default: SQLite): Postgresql
  • Running n8n with the execution process [own(default), main]: Own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: K8s

Looks like it is the same issues as reported here:

Can you please try the docker image n8nio/n8n:0.221.1-rc and see if that fixes the issue for you and then report back on the GitHub issue.

1 Like

@Romuald_BARON Can you please try to upgrade to 0.221.1?

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

I am seeing this same error when I configure my n8n version 0.227.1 in docker to use queue for executions and add two extra workers.

{"level":"error","message":"TypeError: Cannot read properties of undefined (reading 'add')","metadata":{"file":"ErrorReporterProxy.js","function":"report","timestamp":"2023-05-24T18:29:50.356Z"}}
{"level":"error","message":"Error executing workflow. See log messages for details.","metadata":{"file":"execute.js","function":"catch","timestamp":"2023-05-24T18:29:50.372Z"}}
{"level":"error","message":"\nExecution error:","metadata":{"file":"execute.js","function":"catch","timestamp":"2023-05-24T18:29:50.373Z"}}
{"level":"error","message":"Cannot read properties of undefined (reading 'add')","metadata":{"file":"execute.js","function":"catch","timestamp":"2023-05-24T18:29:50.373Z"}}
{"level":"error","message":"TypeError: Cannot read properties of undefined (reading 'add')\n    at WorkflowRunner.enqueueExecution (/usr/local/lib/node_modules/n8n/dist/WorkflowRunner.js:273:39)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at WorkflowRunner.run (/usr/local/lib/node_modules/n8n/dist/WorkflowRunner.js:108:27)\n    at Execute.run (/usr/local/lib/node_modules/n8n/dist/commands/execute.js:101:29)\n    at Execute._run (/usr/local/lib/node_modules/n8n/node_modules/@oclif/command/lib/command.js:43:20)\n    at Config.runCommand (/usr/local/lib/node_modules/n8n/node_modules/@oclif/config/lib/config.js:173:24)\n    at Main.run (/usr/local/lib/node_modules/n8n/node_modules/@oclif/command/lib/main.js:28:9)\n    at Main._run (/usr/local/lib/node_modules/n8n/node_modules/@oclif/command/lib/command.js:43:20)","metadata":{"file":"execute.js","function":"catch","timestamp":"2023-05-24T18:29:50.374Z"}}

With redis 7 config:

EXECUTIONS_MODE=queue
QUEUE_BULL_REDIS_HOST=blahblah.ng.0001.use1.cache.amazonaws.com
QUEUE_BULL_REDIS_PORT=6379

The two workers are starting as n8n worker