Unknow interaction

Hello, I've been stuck on the UnknowInteraction error returned by my code for several weeks. The problem is that I can't reproduce the bug, it happens randomly and despite many tries I still can't find the source of the problem. Discord.js:
[email protected] /home/debian/UnityBot
[email protected] /home/debian/UnityBot
Node:
v16.18.0
v16.18.0
Env:
_,met$$$$$gg. debian@vps-e32defb0
,g$$$$$$$$$$$$$$$P. -------------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 10 (buster) x86_64
,$$P' `$$$. Host: OpenStack Nova 19.3.2
',$$P ,ggs. `$$b: Kernel: 4.19.0-22-cloud-amd64
`d$$' ,$P"' . $$$ Uptime: 198 days, 23 hours, 9 mins
$$P d$' , $$P Packages: 643 (dpkg)
$$: $$. - ,d$$' Shell: bash 5.0.3
$$; Y$b._ _,d$P' Terminal: /dev/pts/0
Y$$. `.`"Y$$$$P"' CPU: Intel (Haswell, no TSX) (1) @ 2.399GHz
`$$b "-.__ Memory: 232MiB / 1949MiB
`Y$$
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
_,met$$$$$gg. debian@vps-e32defb0
,g$$$$$$$$$$$$$$$P. -------------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 10 (buster) x86_64
,$$P' `$$$. Host: OpenStack Nova 19.3.2
',$$P ,ggs. `$$b: Kernel: 4.19.0-22-cloud-amd64
`d$$' ,$P"' . $$$ Uptime: 198 days, 23 hours, 9 mins
$$P d$' , $$P Packages: 643 (dpkg)
$$: $$. - ,d$$' Shell: bash 5.0.3
$$; Y$b._ _,d$P' Terminal: /dev/pts/0
Y$$. `.`"Y$$$$P"' CPU: Intel (Haswell, no TSX) (1) @ 2.399GHz
`$$b "-.__ Memory: 232MiB / 1949MiB
`Y$$
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
The code causing the error: https://github.com/gzordrai/UnityBot/blob/main/src/events/interactionCreate.ts
GitHub
UnityBot/src/events/interactionCreate.ts at main · gzordrai/UnityBot
Discord bot allowing verification of new users, role assignment and administration commands - UnityBot/src/events/interactionCreate.ts at main · gzordrai/UnityBot
6 Replies
d.js toolkit
d.js toolkit2y 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.
d.js docs
d.js docs2y ago
Tag suggestion for @gzordrai: 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
gzordrai
gzordraiOP2y ago
I already know this, but i don't understand why the error is not constant
gzordrai
gzordraiOP2y ago
When i check the processing time between entering the code and defer is less than 3s
treble/luna
treble/luna2y ago
network issue possibly
gzordrai
gzordraiOP2y ago
there are 2 other bots running permanently on the server and it never crashes I don't think it's a network problem
Want results from more Discord servers?
Add your server