Discord node - failing to send multiple messages using webhook

Describe the problem/error/question

I have a workflow in the latest n8n (1.95.3) in my self-hosted Docker environment. I’m pretty new to n8n, so bear with me.

In my workflow, I’m running a daily task to check GitHub (for a bunch of repos that I use) to see if any have been updated in the last 24 hours, and if so, extract relevant information and then post to a Discord webhook.

The workflow works great when there is only one update detected, but when there are 2 or more updates, then the Discord node errors out on the 2nd one.

I’ve put a Split in Batches node before the Discord node, with a Wait node after (that loops back into the Split in Batches node} to see if I was being rate limited. Even with 30 second wait times the Discord node keeps erroring out when trying to send the 2nd message.

What is the error message (if any)?

{
  "errorMessage": "",
  "errorDetails": {},
  "n8nDetails": {
    "nodeName": "Discord Webhook",
    "nodeType": "n8n-nodes-base.discord",
    "nodeVersion": 2,
    "operation": "sendLegacy",
    "itemIndex": 0,
    "time": "6/7/2025, 1:28:42 PM",
    "n8nVersion": "1.95.3 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "NodeOperationError: ",
      "    at ExecuteContext.parseDiscordError (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Discord/v2/helpers/utils.ts:82:9)",
      "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Discord/v2/actions/webhook/sendLegacy.operation.ts:153:34)",
      "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "    at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Discord/v2/actions/router.ts:70:17)",
      "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Discord/v2/DiscordV2.node.ts:33:10)",
      "    at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1185:9)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1534:27",
      "    at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2098:11"
    ]
  }
}

Please share your workflow

Share the output returned by the last node

The last node is the Discord node. For the fist message sent the output is:

[
  {
    "success": true
  }
]

and the output the second message is the error message above.

Information on your n8n setup

  • n8n version: 1.95.3
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 24.04

Found the problem!

The discord only allow max 2000 characters in message.

But some release note are way too long. You need to extract part of the characters only.

This working on my end. Please take a test on this.

Thanks

1 Like

THANK YOU! Your solution worked like a champ!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.