DiscordAPIError[10062]: Unknown interaction

hii my bot was working very well at morning but now its give me this error for everything i use any help šŸ¤
27 Replies
d.js toolkit
d.js toolkit•2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
LUCAS
LUCASOP•2y ago
discordjs-v14-new_uncrypted@1.0.0 C:\Users\lucas\OneDrive\Desktop\CG_V7
ā”œā”€ā”¬ discord-gamecord@4.4.0
│ └── discord.js@14.11.0 deduped
ā”œā”€ā”¬ discord-giveaways@6.0.1
│ └── discord.js@14.11.0 deduped
ā”œā”€ā”¬ discord-html-transcripts@3.1.4
│ └── discord.js@14.11.0 deduped
└── discord.js@14.11.0
discordjs-v14-new_uncrypted@1.0.0 C:\Users\lucas\OneDrive\Desktop\CG_V7
ā”œā”€ā”¬ discord-gamecord@4.4.0
│ └── discord.js@14.11.0 deduped
ā”œā”€ā”¬ discord-giveaways@6.0.1
│ └── discord.js@14.11.0 deduped
ā”œā”€ā”¬ discord-html-transcripts@3.1.4
│ └── discord.js@14.11.0 deduped
└── discord.js@14.11.0
āÆ node -v v18.14.2
d.js docs
d.js docs•2y ago
Common causes of DiscordAPIError[10062]: Unknown interaction: • Initial response took more than 3 seconds āžž defer the response *. • Wrong interaction object inside a collector. * Note: you cannot defer modal or autocomplete value responses
LUCAS
LUCASOP•2y ago
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async ChatInputCommandInteraction.reply (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1115399057666494649//callback'
} Promise {
<rejected> DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async ChatInputCommandInteraction.reply (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) {
requestBody: { files: [], json: [Object] },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1115399057666494649//callback'
}
}
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async ChatInputCommandInteraction.reply (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1115399057666494649//callback'
} Promise {
<rejected> DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async BurstHandler.runRequest (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:736:23)
at async REST.request (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async ChatInputCommandInteraction.reply (C:\Users\lucas\OneDrive\Desktop\CG_V7\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:5) {
requestBody: { files: [], json: [Object] },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1115399057666494649//callback'
}
}
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
yup and he told me to create form
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
i try to to go with defer its just give me ... CG_V3 is thinking... nothing more
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
i did already but still some
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
what code u need
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
ita not giving me any error from Commands ita just reply this in console
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs•2y ago
Responding to interactions: • #reply immediately respond with a message • #update immediately update the original message (buttons, select menus) • #showModal immediately show a modal (cannot be deferred) • #deferReply/Update respond later (up to 15 minutes) • #followUp post an additional message The initial response has to happen within 3s of receiving the interaction!
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
ok wait I'll change them all to editReply
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
yes
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
so i need to remove ephemeral ?
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
LUCAS
LUCASOP•2y ago
or šŸ‘€ okay
d.js docs
d.js docs•2y ago
guide Slash Commands: Deferred responses read more

Did you find this page helpful?