Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands occasionally fail with an 'Unknown interaction' Discord API error #41

Open
1 task done
pfist opened this issue Apr 18, 2023 · 0 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@pfist
Copy link
Member

pfist commented Apr 18, 2023

Was this issue already reported?

  • I have searched the existing issues

On which platform did you encounter this issue?

Desktop app

What happened

A moderator tried using the Ban command, and the command failed. The logs report the following error:

DiscordAPIError[10062]: Unknown interaction
  at handleErrors (.../quinn/node_modules/@discordjs/rest/dist/index.js:640:13)
  at runMicrotasks (<anonymous>)
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async BurstHandler.runRequest (.../quinn/node_modules/@discordjs/rest/dist/index.js:736:23)
  at async REST.request (.../quinn/node_modules/@discordjs/rest/dist/index.js:1387:22)
  at async ChatInputCommandInteraction.reply (.../quinn/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:111:5)
  at async Ban.run (.../quinn/src/commands/moderation/ban.js:104:9)
  at async CommandHandler.handleSlashCommand (.../quinn/node_modules/hiei.js/src/commands/CommandHandler.js:110:7) {
  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/.../callback'
}

What you expected

Commands should never return an Unknown interaction error.

Steps to reproduce

Unknown

@pfist pfist added the bug Something isn't working label Apr 18, 2023
@pfist pfist self-assigned this Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant