Hi team,
I’m encountering a consistent crash in the Discord v2 node when used with the Error Trigger node in n8n Cloud (version 1.103.2).
Error:
TypeError: Cannot read properties of undefined (reading ‘error’)
at ExecuteContext.parseDiscordError
at sendLegacy.operation.ts:153
…
Steps to reproduce:
- Use
Error Triggernode in a workflow. - Connect it to a
Discord v2node (Webhook → Send a Message). - Include dynamic variables such as:
{{ $json.execution.error.message }}{{ $json.execution.lastNodeExecuted }}{{ $json.execution.url }}
- Trigger a failing workflow.
Despite rendering the preview correctly, the Discord node fails and the workflow crashes with:
sendLegacy: undefined
Additional context:
- n8n Cloud version: 1.103.2
- Using Webhook credentials with a valid Discord webhook URL.
- Stack trace shows the error occurs at
parseDiscordError()when trying to access.erroron an undefined response object. - When switching to Discord v1 node, everything works correctly.
Temporary Workaround:
Use the older Discord v1 node instead of v2.
Let me know if I can provide a minimal reproducible example, full logs, or screenshots.
Thanks in advance!
— Laura