Error reference

Discord API errors and troubleshooting

Troubleshoot Discord API and webhook errors for missing channels, missing guilds, invalid tokens, empty messages, oversized attachments, permission gaps, slowmode, and JSON validation. Use this guide to decide whether to recreate a webhook, adjust permissions, shrink content, or wait.

Last updated: May 2026

10 documented error patterns across 6 categories

Clear guidance on reconnecting, retrying, replacing media, or changing content

Official platform references plus bundle.social production troubleshooting notes

Error categories

Find the failure type first

10 documented errors

All error codes

Codes, causes, and fixes

Missing Resource

2 mapped cases

Missing Resource
10003Fix input

Discord could not find the target channel.

Refresh the channel ID and confirm the bot can access the server and channel.

user-error
10004Fix input

Discord could not find the target guild.

Reconnect Discord or verify the server connection still exists.

user-error

Authentication

2 mapped cases

Authentication
10015Reconnect

Discord could not find the webhook.

Create a new webhook or reconnect the Discord integration.

refresh-token
40001Reconnect

Discord rejected the token.

Reconnect or rotate the integration token.

refresh-token

Rate Limiting

2 mapped cases

Rate Limiting
20016Retry later

Discord slowmode blocked the message.

Wait for channel slowmode to expire before retrying.

retry
20028Retry later

The channel write rate limit was reached.

Queue messages and retry after Discord's rate-limit window.

retry

Media

1 mapped case

Media
40005Fix input

The request body or attachment is too large.

Reduce message payload, embeds, or file size before retrying.

user-error

Content

2 mapped cases

Content
50006Fix input

Discord cannot send an empty message.

Include message content, embeds, attachments, poll data, or forum starter content.

user-error
50035Fix input

Discord rejected the request body.

Validate nested message, embed, poll, attachment, and forum fields.

user-error

Permissions

1 mapped case

Permissions
50013Fix input

The bot lacks permission for the action.

Grant Send Messages, Embed Links, Attach Files, thread, or forum permissions as needed.

user-error

Discord errors usually come from channel, webhook, or permission state

A Discord message can fail because the webhook was deleted, the bot lost access to the channel, the server changed permissions, the channel was archived, slowmode is active, or the message body is invalid.

Message body validation can fail deeply nested fields

Discord validation errors can come from embeds, attachments, mentions, polls, forum starter messages, empty content, or invalid nested fields. Simplify the payload before retrying.

Slowmode and rate limits should be queued

Discord rate limits and slowmode failures should be retried only after the retry-after window. Immediate retries can create more failed sends.

Deleted webhooks need to be recreated

If Discord cannot find the webhook or rejects the token, reconnecting or recreating the webhook is usually the correct fix. Changing the message body will not help.

How bundle.social helps

bundle.social separates Discord delivery failures by webhook existence, token validity, guild and channel access, permissions, message body validation, attachment size, slowmode, and rate limits.

Retry safety

Retry only temporary platform failures, processing delays, timeouts, 5xx responses, and rate-limit errors after the platform allows it. Do not retry the same request when the failure is caused by expired tokens, missing permissions, unsupported media, invalid captions, duplicate content, account restrictions, or policy blocks. The same payload will usually fail again until the account, media, content, or platform-specific setting is fixed.

Official references

Platform APIs change. Use these links to confirm current error behavior and field support.

FAQ

Can Discord API error messages change over time?

Discord errors are usually stable numeric JSON codes, but the same send attempt can fail because of channel type, bot permissions, webhook state, slowmode, or nested payload validation.

Should users reconnect the account for every failed post?

No. Reconnect or recreate Discord webhooks for missing webhook or invalid token errors. For missing permissions, empty messages, oversized payloads, slowmode, or invalid JSON fields, fix the server or message configuration first.

Does bundle.social hide the native platform error?

bundle.social keeps Discord's JSON code attached to the job and turns channel, webhook, permission, payload, and rate-limit failures into concrete next actions.

Build with less platform drag

Use one API for social publishing workflows

Create account