DiscordUpdated
Discord API error codes and how to fix them
Discord API errors return an HTTP status and a JSON body with a numeric code and a message. 50013 is a missing permission, 50001 missing access, 10003 an unknown channel, 50035 an invalid form body (often text over 2,000 characters), 40005 a file that is too large, and 429 a rate limit with retry_after. Each has the fix. Siar, a unified social media API, keeps Discord’s own code and message on the post and adds the fix below.
Jump to a code: 50013, 50001, 10003, 10015, 10008, 50035, 40005, 429, 401.
Codes and messages are what Discord returns. Where Discord documents a code, this page follows its docs.
50013 · Missing Permissions · the bot lacks a permission in that channel
The bot (or its role) lacks a permission in that channel, e.g. Manage Webhooks or Send Messages. Give the bot's role View Channel, Send Messages and Attach Files in the channel (and Manage Webhooks if it posts through webhooks).
What Siar does with it: Siar keeps Discord's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Discord's message: Missing Permissions
50001 · Missing Access · the bot can't see the channel or server
The bot cannot see the channel or server (removed, or the channel is private to other roles). Re-invite the bot, or give its role access to the channel.
What Siar does with it: Siar keeps Discord's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Discord's message: Missing Access
10003 · Unknown Channel · the channel was deleted
The channel was deleted. Choose another channel.
What Siar does with it: Siar keeps Discord's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Discord's message: Unknown Channel
10015 · Unknown Webhook · the webhook was deleted
The Siar webhook was deleted in Discord. Create a new webhook for the channel and retry.
What Siar does with it: Siar creates a new webhook in the channel and retries once, so you should not need to do anything.
Discord's message: Unknown Webhook
10008 · Unknown Message · the message is already deleted
The message was already deleted in Discord. Nothing to delete.
What Siar does with it: Siar keeps Discord's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Discord's message: Unknown Message
50035 · Invalid Form Body · a field was rejected
A field was rejected, usually content over 2000 characters, more than 10 files, or a username containing "discord" or "clyde". Shorten the text, send at most 10 files, change the username.
What Siar does with it: Siar checks this rule when you create the post. A request that breaks it gets a 400 with an issues entry pointing at the field, before Discord sees it, so you fix it at create time, not when the post is due.
Discord's message: Invalid Form Body
40005 · Request entity too large · the file is over the upload limit
A file or the whole upload is over the server's upload limit (10 MB unless the server is boosted). Compress the file or post a link.
What Siar does with it: Siar keeps Discord's code and message on the post, word for word, marks it "don't retry" or "unknown", and still publishes to the other networks in the post. Fix the cause, then call POST /post/{id}/retry: only the failed networks are sent again, and the retry doesn't count as another post.
Discord's message: Request entity too large
429 · You are being rate limited. · the rate limit is used up
Webhooks allow about 5 requests per 2 seconds per webhook; retry_after says when. Wait `retry_after` seconds, then retry.
What Siar does with it: Siar treats it as temporary and tries again on its own, up to three attempts in all. It waits for Discord's reset time when Siar can read one from the response, otherwise 30 seconds, then 60. These attempts don't use the post's manual retries. If the last attempt fails too, the error stays on the post.
Discord's message: You are being rate limited.
401 · 401: Unauthorized · the bot token is wrong or was reset
The server's bot token is wrong or was reset. Check the bot token in the Discord developer portal and update it where your app stores it.
What Siar does with it: With Siar, posts go through Siar's own Discord bot, so this error would mean a problem on Siar's side, not yours. The post keeps the message so you can report it.
Discord's message: 401: Unauthorized
Where to see a Discord error in Siar
Read a failed post with GET /post/{id}. The error field sums it up, errors lists the result per network, and errorsVerbose keeps Discord's own code, message and HTTP status, a plain-English message, and a retry verdict: retryable, non_retryable or unknown. A signed post.published webhook fires when the post has published or failed, with each network's result. Fix the cause and retry with POST /post/{id}/retry.
Siar, a unified social media API, publishes to Facebook, Instagram, Threads, X, LinkedIn profiles, Bluesky, Mastodon, Discord and Slack today. See each network's status, or go back to Post to Discord via API.
Error codes for other networks
The same pattern, for each network Siar is built for: social media API error codes, by network. For errors from Siar's own API (a 401 for a missing key, a 429 rate limit), see Siar API errors and status codes.
TikTok API error codes · YouTube API error codes · Instagram API error codes · Facebook API error codes · X (Twitter) API error codes · Threads API error codes · LinkedIn API error codes · Pinterest API error codes · Reddit API error codes · Mastodon API error codes · Slack API error codes · Bluesky API error codes · Google Business Profile API error codes · Snapchat API error codes
Frequently asked questions
Should I retry a failed Discord API request?
Only if the error is temporary. Rate limits (429 and Discord's own rate-limit codes) and 5xx errors can be retried after the reset time. Token, permission, duplicate and content errors fail the same way every time, so fix the cause first. Each entry on this page says which kind it is.
Why does the Discord API reject a request that looks right?
Usually because of something outside the request body: an expired token, a permission the user didn't grant, the account's daily limit, or text the account posted recently. Read the code and message first, then match it to an entry on this page. Validating length and media before sending catches most of the rest.
Does Siar retry failed Discord posts automatically?
For temporary errors, yes: Siar tries up to three times in all, waiting for the network's reset time when it can read one. Other errors stay on the post with Discord's own code and message. Fix the cause and retry: only the failed networks are sent again, and the retry doesn't count as another post.
Will retrying a failed post publish it twice?
Not through Siar's retry. Each network in a post is claimed once, and only the networks that failed are sent again. An interrupted send is checked against the account before anything is re-sent. But calling the create endpoint again makes a new post: Siar has no client idempotency key, so check your own records first.
Your first post is one request away.
Start with 20 free posts to try. No card. A one-time allowance, with no time limit.