[ErrorResponseException] 10062: Unknown interaction #2324
Answered
by
FerroEduardo
FerroEduardo
asked this question in
Questions and Help
-
There is any explanation for this exception? [ForkJoinPool.commonPool-worker-1] ERROR RestAction - RestAction queue returned failure: [ErrorResponseException] 10062: Unknown interaction
net.dv8tion.jda.api.exceptions.ContextException
at net.dv8tion.jda.api.exceptions.ContextException.here(ContextException.java:54)
at net.dv8tion.jda.api.requests.Request.<init>(Request.java:73)
at net.dv8tion.jda.internal.requests.RestActionImpl.queue(RestActionImpl.java:200)
at net.dv8tion.jda.internal.requests.restaction.interactions.InteractionCallbackImpl.queue(InteractionCallbackImpl.java:74)
at net.dv8tion.jda.api.requests.RestAction.queue(RestAction.java:572)
at com.softawii.saciperere.listener.QuestionGroup.makeQuestion(QuestionGroup.java:68)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.softawii.curupira.core.CommandHandler.execute(CommandHandler.java:104)
at com.softawii.curupira.core.Curupira.onSlashCommandInteraction(Curupira.java:384)
at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:403)
at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96)
at net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:88)
at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:70)
at net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:173)
at net.dv8tion.jda.internal.handle.InteractionCreateHandler.handleCommand(InteractionCreateHandler.java:110)
at net.dv8tion.jda.internal.handle.InteractionCreateHandler.handleInternally(InteractionCreateHandler.java:81)
at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:39)
at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:961)
at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:847)
at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:825)
at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:1000)
at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385)
at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276)
at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755)
at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45) Place where the exception is thrown event.replyEmbeds(embedBuilder.build())
.queue(interactionHook -> {
String positiveId = String.format("%s:%s", POSITIVE_FEEDBACK_ACTION, response.historyId());
String negativeId = String.format("%s:%s", NEGATIVE_FEEDBACK_ACTION, response.historyId());
String textId = String.format("%s:%s", TEXT_FEEDBACK_ACTION, response.historyId());
Button successButton = Button.success(positiveId, "Era o que esperava");
Button cancelButton = Button.danger(negativeId, "Fora do esperado");
Button textButton = Button.secondary(textId, "Quero enviar um feedback em texto");
interactionHook.sendMessage("Qual feedback daria para o retorno do bot?")
.addActionRow(successButton, cancelButton, textButton)
.setEphemeral(true)
.queueAfter(2, TimeUnit.SECONDS);
}); Obs: |
Beta Was this translation helpful? Give feedback.
Answered by
FerroEduardo
Nov 12, 2022
Replies: 1 comment 2 replies
-
Problem fixed, I was not acknowledging faster enough |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
FerroEduardo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem fixed, I was not acknowledging faster enough