tryfyfu
tryfyfu
DIAdiscord.js - Imagine an app
Created by tryfyfu on 2/25/2025 in #djs-questions
Unknown interaction, what could be the reason?
I am currently working on a bot that requests an api and then sends it back, the typical one. Everything worked and all interactions worked, but suddenly it stopped working. No interaction, be it commands or buttons, works anymore, the same error message always appears. I thought this could be because the interactions take too long, I tried defer etc. but it didn't help. What could be the reason for that? - discord.js version: 14.18 - node version: v21.7.3 The exact error code is:
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\User\OneDrive\Desktop\secret test\node_modules\@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\User\OneDrive\Desktop\secret test\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\User\OneDrive\Desktop\secret\test\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ModalSubmitInteraction.reply (C:\Users\User\OneDrive\Desktop\secret\test\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:194:22)
The 'error' event was emitted on the client instance at:
at emitUnhandledRejectionOrErr (node:events:402:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Invalid User',
tts: false,
nonce: undefined,
enforce_nonce: false,
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,
applied_tags: undefined,
poll: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: -'
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\User\OneDrive\Desktop\secret test\node_modules\@discordjs\rest\dist\index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\User\OneDrive\Desktop\secret test\node_modules\@discordjs\rest\dist\index.js:831:23)
at async _REST.request (C:\Users\User\OneDrive\Desktop\secret\test\node_modules\@discordjs\rest\dist\index.js:1272:22)
at async ModalSubmitInteraction.reply (C:\Users\User\OneDrive\Desktop\secret\test\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:194:22)
The 'error' event was emitted on the client instance at:
at emitUnhandledRejectionOrErr (node:events:402:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
requestBody: {
files: [],
json: {
type: 4,
data: {
content: 'Invalid User',
tts: false,
nonce: undefined,
enforce_nonce: false,
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,
applied_tags: undefined,
poll: undefined
}
}
},
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: -'
}
thank you for your help :love:
17 replies