HTTPERROR [FetchError]

After running the bot for a while, it stops working and if I try to use a command again I would get HTTPERROR
HTTPError [FetchError]: request to https://discord.com/api/v9/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTODpXYTNXTkJnQzdxckZxTld3a0ZNYkZBczl4VnJmS3ZIWjZiZEU2dVFUczBZZGRWRzUzQTRQTHV6Qmw3aFJudExBS1V6cVhGSjlzYkNYZlFRMFpuY21RSmdKNU94VTRVTjY3Ug/callback failed, reason: getaddrinfo ENOTFOUND discord.com
at RequestHandler.execute (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:201:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:99:5) {
code: 500,
method: 'post',
path: '/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTA1ODkwMjQxMjA0MTE0NjQ5ODpXZxTld3a0ZNYkZBczl4VnJmS3ZIWjZiZEU2dVFUczBZZGRWRzUzmw3aFJudExBS1V6cVhGSjlzYkNYZlFRMFpuY21RSmdKNU94VTRVTjY3Ug/callback',
requestData: { json: { type: 4, data: [Object] }, files: [] }
} Promise {
<rejected> HTTPError [FetchError]: request to https://discord.com/api/v9/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTA1ODkwMjQxMjA0MTE0NjQ5ODpXYTNXTkJnQzdxckZxTld3a0ZQTRQMk5OMXhlQ0V5MTlTY082cVNvRE1jTU5JQXpYVlh3THV6Qmw3aFJudExBSdKNU94VTRVTjY3Ug/callback failed, reason: getaddrinfo ENOTFOUND discord.com
at RequestHandler.execute (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:201:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:99:5) {
code: 500,
method: 'post',
path: '/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTA1ODkwMjQxMjA0MTE0NjQ5ODpXYTNXTkJnQzdxckZxTld3a0ZNYkZBczl4VnJmS3ZIWjZiZEU2dVFUczBvRE1jTU5JQXpYVlh3THV6Qmw3aFJudExBS1V6cVhGSjlzYkNYZlFRMFpuY21RSmdKNU94VTRVTjY3Ug/callback',
requestData: { json: [Object], files: [] }
}
}
HTTPError [FetchError]: request to https://discord.com/api/v9/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTODpXYTNXTkJnQzdxckZxTld3a0ZNYkZBczl4VnJmS3ZIWjZiZEU2dVFUczBZZGRWRzUzQTRQTHV6Qmw3aFJudExBS1V6cVhGSjlzYkNYZlFRMFpuY21RSmdKNU94VTRVTjY3Ug/callback failed, reason: getaddrinfo ENOTFOUND discord.com
at RequestHandler.execute (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:201:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:99:5) {
code: 500,
method: 'post',
path: '/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTA1ODkwMjQxMjA0MTE0NjQ5ODpXZxTld3a0ZNYkZBczl4VnJmS3ZIWjZiZEU2dVFUczBZZGRWRzUzmw3aFJudExBS1V6cVhGSjlzYkNYZlFRMFpuY21RSmdKNU94VTRVTjY3Ug/callback',
requestData: { json: { type: 4, data: [Object] }, files: [] }
} Promise {
<rejected> HTTPError [FetchError]: request to https://discord.com/api/v9/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTA1ODkwMjQxMjA0MTE0NjQ5ODpXYTNXTkJnQzdxckZxTld3a0ZQTRQMk5OMXhlQ0V5MTlTY082cVNvRE1jTU5JQXpYVlh3THV6Qmw3aFJudExBSdKNU94VTRVTjY3Ug/callback failed, reason: getaddrinfo ENOTFOUND discord.com
at RequestHandler.execute (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:201:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (C:\Users\ElBretxa\Desktop\personalbot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:99:5) {
code: 500,
method: 'post',
path: '/interactions/1058902412041146498/aW50ZXJhY3Rpb246MTA1ODkwMjQxMjA0MTE0NjQ5ODpXYTNXTkJnQzdxckZxTld3a0ZNYkZBczl4VnJmS3ZIWjZiZEU2dVFUczBvRE1jTU5JQXpYVlh3THV6Qmw3aFJudExBS1V6cVhGSjlzYkNYZlFRMFpuY21RSmdKNU94VTRVTjY3Ug/callback',
requestData: { json: [Object], files: [] }
}
}
What is the reason for this? I actually run a command in a channel, and keeps deleting the channel messages and sends updated query server info when a player joins and leave the game server. I also get RTC Connecting in my main discord when my bot stops working, and I can join any call until I stop it and restart discord.
2 Replies
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
[ 💖 ] ElBretxa
discord.js@13.6.0 and node v18.12.1 Done The thing is that stops working after a while Not giving any error in terminal And if I do the command again Ok, so the command should last until I turn the bot off, but after a while working perfectly, it stops sending messages And if I do the command again in the same channel, it will send it once and give HTTPError in terminal My own pc Some times visual studio and other times cmd Cable Maybe firewall? Blocking connection with discord? I also get RTC Connecting if I try join a vc when the bot stops working