Error reference

Bot errors, explained and fixed.

The errors that come up again and again when you build and host a bot, what each one actually means, and what to change. Find yours below, or search this page for the text you are seeing.

Reading an error

Most of these errors carry a number, and the number is the useful part. Discord's API errors are five-digit codes like 50013; its gateway closes the connection with four-digit codes like 4014; Telegram uses HTTP statuses like 409. Search this page for the number before you read the rest of the message.

If the error scrolled past too fast to read, your hosting console keeps it. The line that matters is usually the first one that is not indented; everything under it is the stack trace showing where it happened.