Commands stop working after running for a longer amount of time

For some reason if the bot is running for a longer amount of time, the slash commands stop working and fail with the following error:
dev.kord.rest.request.KtorRequestException: REST request returned an error: 404 Unknown interaction null
at dev.kord.rest.request.KtorRequestHandler.handle(KtorRequestHandler.kt:61)
at dev.kord.rest.request.KtorRequestHandler$handle$1.invokeSuspend(KtorRequestHandler.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
dev.kord.rest.request.KtorRequestException: REST request returned an error: 404 Unknown interaction null
at dev.kord.rest.request.KtorRequestHandler.handle(KtorRequestHandler.kt:61)
at dev.kord.rest.request.KtorRequestHandler$handle$1.invokeSuspend(KtorRequestHandler.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
Restarting the bot fixes it and commands work again, but it seems to take a couple of days and then it just stops working. The non slash command portions of the bot continue to work fine, albeit slower (I assume that is the bot being rate limited) Is the bot running into some sort of quota or timeout issue?
2 Replies
gdude
gdude4w ago
I ran into this problem once and even the guy who was running the entire bot system at discord couldn't figure it out It fixed itself after a few months
Flying Porygon
Flying PorygonOP3w ago
So basically the best thing I can do is just restart it every night?
Want results from more Discord servers?
Add your server