// guides · n8n error index

n8n Discord node not working? 20 tests, every error decoded

Why the n8n Discord webhook node fails: empty messages, "Invalid Form Body" with no reason, invalid webhook tokens, 429s not retried, no message id. 20 runs on n8n 2.43.7.

Updated 2026-10-25 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. How we tested, and what is real

    We ran 20 workflows with the Discord node v2, Connection Type Webhook, operation Send a Message, on n8n 2.43.7 with n8n execute. To make Discord fail on purpose (deleted webhook, rate limit, form errors) we set the credential's Webhook URL to a small local stand-in that logs every request and answers with the error JSON Discord documents. So what n8n sends and how it reports errors is real; the Discord answers are simulated.

  2. "Cannot send an empty message": the Content expression is empty

    n8n still sends the request when Content is empty, and Discord rejects it with Cannot send an empty message. This is usually an expression like {{ $json.msg }} pointing at a field that is missing or empty on that item. Fix the field, filter out empty items with a Filter node first, or add a fallback: {{ $json.msg || '(no text)' }}. A message with an embed and no Content was delivered fine.

  3. "Invalid Form Body": n8n hides the reason

    Two very different mistakes gave the same short error, Invalid Form Body: Content longer than 2000 characters, and a Username option that contains the word discord (Discord forbids it). Discord's reply names the field, but n8n did not show it in our runs. n8n does not split long text: cut it to 2000 characters or split it into several items (Code node below). And pick a username without discord in it.

  4. "Unknown Webhook", "Invalid Webhook Token" and "404: Not Found"

    Unknown Webhook means the webhook ID no longer exists: someone deleted it, or the channel was removed. Invalid Webhook Token means the ID is right but the token part is wrong, which is what you get after Regenerate or a half-pasted URL; copy the full URL again from Server Settings > Integrations > Webhooks into the n8n credential. 404: Not Found came from a URL that is not a webhook URL at all, such as a channel link. A trailing slash on a correct URL was fine.

  5. "You are being rate limited." is not retried

    When our stand-in answered 429 with retry-after: 2, n8n sent one request and failed with You are being rate limited.; it did not wait and try again, even when a second try would have worked. Turn on Settings > Retry On Fail with a wait of 2000 ms or more, or pace bursts with Loop Over Items and a Wait node. Discord's documented limit for one webhook is about 5 requests per 2 seconds. Options compared in n8n 429 rate limits.

  6. No message id in the output? Turn on Wait

    By default n8n posts without ?wait=true, Discord answers 204 with no body, and the node outputs only {"success": true}. With Options > Wait on, n8n added ?wait=true and returned the whole message, including its id. You need that id to edit or delete the message later.

  7. Embeds: Raw JSON, URLs and colors

    Embed Raw JSON must be strict JSON: {title: 'x'} failed before anything was sent with Expected property name or '}' in JSON at position 1 and Not a valid JSON; use {"title": "x"}. An embed URL without https:// was sent and then failed with The parameter Url is not properly formatted. A color written as #ff0000 was converted to the number Discord expects, so hex is fine.

  8. Objects, @everyone and one bad item

    An expression that returns an object ({{ $json.data }}) was sent as a raw JSON object in content, which Discord documents as a string; use {{ JSON.stringify($json.data) }} or pick one field. n8n sends no allowed_mentions, so @everyone in your text is left to Discord's default; Discord's docs say webhooks can ping it if the webhook has that permission. With 3 items and an empty item 2, item 1 was posted and item 3 was never sent; running again posts item 1 a second time. Set Settings > On Error > Continue (using regular output) and all items are attempted.

All 20 test results

Left: what we sent through the Discord node (Connection Type Webhook, operation Send a Message). Right: what n8n did (real) and the answer from our Discord stand-in (simulated, see the first step).

TestResult
Hello world, defaultsDelivered (stand-in answered 204). n8n output was only {"success": true}, no message id
Same with Options > Wait onn8n added ?wait=true to the URL and output the full message object with its id
Empty ContentRequest still sent; error Cannot send an empty message
Content of 2,100 charactersSent in one piece, not split; error only Invalid Form Body (the reason, 2000 characters max, was not shown)
Username option containing discordError only Invalid Form Body, again without the reason
Webhook deleted in DiscordUnknown Webhook
Wrong token part of the URLInvalid Webhook Token
Channel URL instead of a webhook URL404: Not Found
Rate limited once (429, retry-after: 2)One request only, then You are being rate limited.; n8n did not wait and retry
Rate limited on every callSame error, one request
Embed color #ff0000Converted to the number 16711680, delivered
Embed Raw JSON written as {title: 'x'}Failed before sending: Expected property name or '}' in JSON at position 1, Not a valid JSON
Embed URL example.com (no https)Sent, then The parameter Url is not properly formatted
Content expression returning an objectSent as a raw JSON object, "content": {"a": 1}, not as text
3 items, item 2 emptyItem 1 delivered, item 2 failed, item 3 never sent
Same, On Error set to Continue (regular output)All 3 attempted, items 1 and 3 delivered
Webhook host not reachableThe service refused the connection - perhaps it is offline
Webhook URL with a trailing slashDelivered
Embed only, Content emptyDelivered
@everyone deploy doneSent with no allowed_mentions, so the mention is left to Discord's default

Code node: split long text into 2000-character messages

Put this before the Discord node and set its Content to {{ $json.text }} (written from Discord's documented limit; this exact snippet was not run):

const text = $input.first().json.text || '';
const parts = [];
for (let i = 0; i < text.length; i += 1900) parts.push(text.slice(i, i + 1900));
return parts.map(t => ({ json: { text: t } }));

Checklist

Good to know

What we did not test

The real discord.com API (answers came from our stand-in, built from Discord's documented error codes), the Bot Token and OAuth2 connection types, other operations, file attachments, the editor's own error panel, and n8n Cloud.

FAQ

Why does the n8n Discord node say "Cannot send an empty message"?

The Content field was empty for that item, usually because its expression points at a missing field. n8n still sends the request and Discord rejects it. Fix the field, filter empty items out, or send an embed.

What does "Invalid Form Body" mean in the n8n Discord node?

Discord rejected one field, and n8n does not say which. In our tests it was Content over 2000 characters or a username containing the word discord.

How do I fix "Invalid Webhook Token" or "Unknown Webhook" in n8n?

Copy the full webhook URL again from the Discord channel settings into the n8n credential. Invalid token means the URL was regenerated or cut off; unknown webhook means it was deleted.

Does the n8n Discord node retry when rate limited?

Not in our n8n 2.43.7 tests: one 429 failed the node straight away. Turn on Retry On Fail with a 2-second wait, or space messages with a Wait node.

How do I get the message id from the n8n Discord node?

Turn on Options > Wait. n8n then adds ?wait=true and outputs the full message, including its id. Without it the output is only success: true.

Why did only the first Discord message send in n8n?

One failing item stops the node, so the items after it are never sent. Set On Error to Continue (using regular output).

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.