Service Unavailable

My bot is running for 23 days with no issues. I came across this following error trying to delete a channel:
HTTPError: Service Unavailable
0|index | at handleErrors (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:680:11)
0|index | at SequentialHandler.runRequest (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:1072:29)
0|index | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|index | at async SequentialHandler.queueRequest (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:913:14)
0|index | at async _REST.request (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:1218:22)
0|index | at async GuildChannelManager.delete (/home/ec2-user/node_modules/discord.js/src/managers/GuildChannelManager.js:498:5)
0|index | at async VoiceChannel.delete (/home/ec2-user/node_modules/discord.js/src/structures/GuildChannel.js:467:5)
0|index | at async deleteChannel (/home/ec2-user/events/voiceStateUpdate.js:90:9)
0|index | at async Object.execute (/home/ec2-user/events/voiceStateUpdate.js:46:17) {
0|index | requestBody: { files: undefined, json: undefined },
0|index | status: 503,
0|index | method: 'DELETE',
0|index | url: 'https://discord.com/api/v10/channels/1171159930980536321'
0|index | }
HTTPError: Service Unavailable
0|index | at handleErrors (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:680:11)
0|index | at SequentialHandler.runRequest (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:1072:29)
0|index | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|index | at async SequentialHandler.queueRequest (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:913:14)
0|index | at async _REST.request (/home/ec2-user/node_modules/@discordjs/rest/dist/index.js:1218:22)
0|index | at async GuildChannelManager.delete (/home/ec2-user/node_modules/discord.js/src/managers/GuildChannelManager.js:498:5)
0|index | at async VoiceChannel.delete (/home/ec2-user/node_modules/discord.js/src/structures/GuildChannel.js:467:5)
0|index | at async deleteChannel (/home/ec2-user/events/voiceStateUpdate.js:90:9)
0|index | at async Object.execute (/home/ec2-user/events/voiceStateUpdate.js:46:17) {
0|index | requestBody: { files: undefined, json: undefined },
0|index | status: 503,
0|index | method: 'DELETE',
0|index | url: 'https://discord.com/api/v10/channels/1171159930980536321'
0|index | }
line 90: await channel.delete();
5 Replies
d.js toolkit
d.js toolkit7mo 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 OP
Mark
Mark7mo ago
if this just happened, it may be related to the recent outage #discord-api-status
GMS
GMS7mo ago
it happened about 50 min ago
Mark
Mark7mo ago
probably related to the outage
GMS
GMS7mo ago
Alright thx, I might need to implement a handling for those situations