inconsistent 'interaction not found' errors
Hello! I have a series of interactions, and I can't consistently reproduce this bug at the same spot, but inconsistently I'll get interaction not found errors and I'm not exactly sure what's causing them. Anyone know or can help me fix?
9 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
[email protected]
node v18.9.0
im working on the same project
basically says interaction does not respond
and doesn't really give an error
Not in discord, in console when running
And it is 'interaction not found'
Like I'm trying to do something with an interaction object and it's not able to find it, even though a console.log(interaction) right before it runs fine
@seasha can you send an example of the error?
something like this
DiscordAPIError[10062]: Unknown interaction
at SequentialHandler.runRequest (C:\Users\Arpit\Mustang Math\3mt-discord-bot\node_modules@discordjs\rest\dist\index.js:659:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (C:\Users\Arpit\Mustang Math\3mt-discord-bot\node_modules@discordjs\rest\dist\index.js:458:14)
at async REST.request (C:\Users\Arpit\Mustang Math\3mt-discord-bot\node_modules@discordjs\rest\dist\index.js:902:22)
at async ModalSubmitInteraction.reply (C:\Users\Arpit\Mustang Math\3mt-discord-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5)
at async Client.<anonymous> (C:\Users\Arpit\Mustang Math\3mt-discord-bot\main.js:560:7)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'There was an error while executing this command!',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1039667400527843359/aW50ZXJhY3Rpb246MTAzOTY2NzQwMDUyNzg0MzM1OTpFb1NRaDM5dnRBVUg1SWJpd0FWQUV1b2hYaE9JY0w4QnY4SDNTMTl3SFA3ZHpsNGVJUklhT2FrZGR4OEhFa0tGMGxhOFczcjVtc0hxUXVlc0JGNXRsTXlsUHNsRzBGMWVrSjMxUWlvb1pZaUtiVHZVMmo1YkhmV1dLa1ZmN1RGSg/callback'
}
above is an example error stack we're receiving
its not just in discord
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I already defer reply and edit reply
Its not an issue of not replying to the interaction or trying to reply to an already replied to interaction - its simply not able to find the interaction itself
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View