HTTPError: Bad Gateway

I'm just curious about why this error occurs
6 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
! Murali Anand
! Murali AnandOP14mo ago
HTTPError: Bad Gateway
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:680:11)
at SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1072:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:913:14)
at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1218:22)
at async GuildChannelManager.edit (/home/container/node_modules/discord.js/src/managers/GuildChannelManager.js:299:21) {
requestBody: {
files: undefined,
json: {
name: 'Total Members: 5817',
type: undefined,
topic: undefined,
nsfw: undefined,
bitrate: 64000,
user_limit: 0,
rtc_region: null,
video_quality_mode: undefined,
parent_id: undefined,
lock_permissions: undefined,
rate_limit_per_user: undefined,
default_auto_archive_duration: undefined,
permission_overwrites: undefined,
available_tags: undefined,
default_reaction_emoji: undefined,
default_thread_rate_limit_per_user: undefined,
flags: undefined,
default_sort_order: undefined,
default_forum_layout: undefined
}
},
status: 502,
method: 'PATCH',
url: 'https://discord.com/api/v10/channels/1106934596890808392'
}
HTTPError: Bad Gateway
at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:680:11)
at SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1072:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:913:14)
at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1218:22)
at async GuildChannelManager.edit (/home/container/node_modules/discord.js/src/managers/GuildChannelManager.js:299:21) {
requestBody: {
files: undefined,
json: {
name: 'Total Members: 5817',
type: undefined,
topic: undefined,
nsfw: undefined,
bitrate: 64000,
user_limit: 0,
rtc_region: null,
video_quality_mode: undefined,
parent_id: undefined,
lock_permissions: undefined,
rate_limit_per_user: undefined,
default_auto_archive_duration: undefined,
permission_overwrites: undefined,
available_tags: undefined,
default_reaction_emoji: undefined,
default_thread_rate_limit_per_user: undefined,
flags: undefined,
default_sort_order: undefined,
default_forum_layout: undefined
}
},
status: 502,
method: 'PATCH',
url: 'https://discord.com/api/v10/channels/1106934596890808392'
}
mahakadema
mahakadema14mo ago
502 signifies that Discords API servers received some error from another internal Discord server and therefore couldn't handle your request. (This can be something like the database failing to store the message u are trying to send) U can find a list of all HTTP status codes with explanations by googling "HTTP status code list"
! Murali Anand
! Murali AnandOP14mo ago
👍
Kinect3000
Kinect300014mo ago
Keep in mind editing channel names (and topics) for bots is heavily rate limited All bots share a limit of 2 / 10 min per channel It’s for the reason of counter bots causing load by doing this too often
! Murali Anand
! Murali AnandOP14mo ago
Thx
Want results from more Discord servers?
Add your server