Skip to content

Unknown interaction on discordjs #307

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

Closed
Pim112 opened this issue Apr 29, 2025 · 1 comment
Closed

Unknown interaction on discordjs #307

Pim112 opened this issue Apr 29, 2025 · 1 comment

Comments

@Pim112
Copy link

Pim112 commented Apr 29, 2025

Describe the bug
Crash on starting youtube song, probably in the discord reply
This happens on the master branch, on the skip-song-extractor branch and on the song-skip branch

To Reproduce
Steps to reproduce the behavior:
/play song

Expected behavior
playing song

Screenshots (optional)

 node .
Collection(18) [Map] {
  'ban' => {
    name: 'ban',
    description: 'Ban a player',
    options: [ [Object] ],
    execute: [Function: execute]
  },
  'help' => {
    name: 'help',
    description: 'List all available commands.',
    execute: [Function: execute]
  },
  'loop' => {
    name: 'loop',
    description: 'Sets loop mode',
    options: [ [Object] ],
    execute: [AsyncFunction: execute]
  },
  'move' => {
    name: 'move',
    description: 'move song position in the queue!',
    options: [ [Object], [Object] ],
    execute: [AsyncFunction: execute]
  },
  'nowplaying' => {
    name: 'nowplaying',
    description: 'Get the song that is currently playing.',
    execute: [AsyncFunction: execute]
  },
  'pause' => {
    name: 'pause',
    description: 'Pause current song!',
    execute: [AsyncFunction: execute]
  },
  'play' => {
    name: 'play',
    description: 'Play a song in your channel!',
    options: [ [Object] ],
    execute: [AsyncFunction: execute]
  },
  'playtop' => {
    name: 'playtop',
    description: 'Play a song before the next in your channel!',
    options: [ [Object] ],
    execute: [AsyncFunction: execute]
  },
  'purge' => {
    name: 'purge',
    description: 'Delete the last messages in all chats.',
    options: [ [Object] ],
    execute: [AsyncFunction: execute]
  },
  'queue' => {
    name: 'queue',
    description: 'View the queue of current songs!',
    execute: [AsyncFunction: execute]
  },
  'remove' => {
    name: 'remove',
    description: 'remove a song from the queue!',
    options: [ [Object] ],
    execute: [AsyncFunction: execute]
  },
  'resume' => {
    name: 'resume',
    description: 'Resume current song!',
    execute: [AsyncFunction: execute]
  },
  'shuffle' => {
    name: 'shuffle',
    description: 'shuffle the queue!',
    execute: [AsyncFunction: execute]
  },
  'skip' => {
    name: 'skip',
    description: 'Skip a song!',
    execute: [AsyncFunction: execute]
  },
  'stop' => {
    name: 'stop',
    description: 'Stop all songs in the queue!',
    execute: [AsyncFunction: execute]
  },
  'swap' => {
    name: 'swap',
    description: 'swap song positions in the queue!',
    options: [ [Object], [Object] ],
    execute: [AsyncFunction: execute]
  },
  'userinfo' => {
    name: 'userinfo',
    description: 'Get information about a user.',
    options: [ [Object] ],
    execute: [Function: execute]
  },
  'volume' => {
    name: 'volume',
    description: 'Change the volume!',
    options: [ [Object] ],
    execute: [AsyncFunction: execute]
  }
}
Extractors loaded successfully
(node:33284) Warning: YoutubeExtractor uses scraping-based streaming libraries which is known to be unstable at times.
An alternative is to use discord-player-youtubei https://npm.im/discord-player-youtubei
View this GitHub issue for more information: https://github.com/Androz2091/discord-player/issues/1922
(Use `node --trace-warnings ...` to show where the warning was created)
Ready!
/opt/***/***/node_modules/@discordjs/rest/dist/index.js:748
      throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
            ^

DiscordAPIError[10062]: Unknown interaction
    at handleErrors (/opt/***/***/node_modules/@discordjs/rest/dist/index.js:748:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async BurstHandler.runRequest (/opt/***/***/node_modules/@discordjs/rest/dist/index.js:852:23)
    at async _REST.request (/opt/***/***/node_modules/@discordjs/rest/dist/index.js:1293:22)
    at async ChatInputCommandInteraction.reply (/opt/***/***/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:194:22)
    at async Object.execute (/opt/***/***/commands/play.js:60:13) {
  requestBody: {
    files: [],
    json: {
      type: 4,
      data: {
        content: 'There was an error trying to execute that command: Unknown interaction',
        tts: false,
        nonce: undefined,
        enforce_nonce: false,
        embeds: undefined,
        components: undefined,
        username: undefined,
        avatar_url: undefined,
        allowed_mentions: undefined,
        flags: undefined,
        message_reference: undefined,
        attachments: undefined,
        sticker_ids: undefined,
        thread_name: undefined,
        applied_tags: undefined,
        poll: undefined
      }
    }
  },
  rawError: { message: 'Unknown interaction', code: 10062 },
  code: 10062,
  status: 404,
  method: 'POST',
  url: 'https://discord.com/api/v10/interactions/1366825084609892373/*****************/callback?with_response=false'
}

Node.js v20.19.1

Desktop (please complete the following information):
Raspberry Pi OS: Debian GNU/Linux 12 (bookworm) aarch64
Host: Raspberry Pi 5 Model B Rev 1.0

Dependency versions:

  • Node.js v20.19.1
  • "@distube/ytdl-core": "4.15.1",
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant