Skip to content

Bot joins and plays songs, but does not support a queue anymore #1184

Description

@raikan-6

What's happening?
You can use most commands with this bot, but every time you try to queue a song, the bot pauses for a good couple of seconds, then immediately skips to the song inputted. Other times, it freezes permanently with an exclamation mark next to its name, and you can't skip or queue anything.

Logs

/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:152
                        throw new DiscordAPIError(data, 'code' in data ? data.code : data.error, status, method, url, requestData);
                              ^


DiscordAPIError[50006]: Cannot send an empty message
    at handleErrors (/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:152:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at SequentialHandler.runRequest (/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:399:20)
    at SequentialHandler.queueRequest (/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:169:11)
    at REST.request (/usr/app/node_modules/discord.js/node_modules/@discordjs/rest/src/lib/REST.ts:343:20)
    at async VoiceChannel.send (/usr/app/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:162:15)
    at default.onAudioPlayerIdle (/usr/app/src/services/player.ts:657:9) {
  requestBody: {
    files: [],
    json: {
      content: undefined,
      tts: false,
      nonce: undefined,
      embeds: [],
      components: undefined,
      username: undefined,
      avatar_url: undefined,
      allowed_mentions: undefined,
      flags: undefined,
      message_reference: undefined,
      attachments: undefined,
      sticker_ids: undefined,
      thread_name: undefined
    }
  },
  rawError: { message: 'Cannot send an empty message', code: 50006 },
  code: 50006,
  status: 400,
  method: 'POST',
  url: 'https://discord.com/api/v10/channels/791115700755759185/messages'
}

Node.js v18.20.4

C:\Users\raikanServer>docker run --restart on-failure -it -v  "C:\Users\raikanServer\muse":/data -e DISCORD_TOKEN=[redacted] -e SPOTIFY_CLIENT_ID=[redacted] -e SPOTIFY_CLIENT_SECRET=[redacted] -e YOUTUBE_API_KEY=[redacted] ghcr.io/museofficial/muse:latest
========================================
========================================
================= muse =================
========================================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
========================================

Running version 2.10.0 built on 11/4/2024 (commit 716d6d9f4f2cd1a6872e463e9877203a259478a3)

🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb


✔ Database migrations applied.
✔ Ready! Invite the bot with https://discordapp.com/oauth2/authorize?client_id=[redacted]&scope=bot%20applications.commands&permissions=36700160

WARNING: @distube/ytdl-core is out of date! Update with "npm install @distube/ytdl-core@latest".
/usr/app/node_modules/@discordjs/voice/src/networking/VoiceUDPSocket.ts:163
                        this.socket.once('close', () => reject(new Error('Cannot perform IP discovery - socket closed')));
                                                               ^


Error: Cannot perform IP discovery - socket closed
    at Socket.<anonymous> (/usr/app/node_modules/@discordjs/voice/src/networking/VoiceUDPSocket.ts:163:43)
    at Object.onceWrapper (node:events:631:28)
    at Socket.emit (node:events:529:35)
    at socketCloseNT (node:dgram:766:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
Emitted 'error' event on VoiceConnection instance at:
    at VoiceConnection.onNetworkingError (/usr/app/node_modules/@discordjs/voice/src/VoiceConnection.ts:500:8)
    at Networking.emit (node:events:517:28)
    at <anonymous> (/usr/app/node_modules/@discordjs/voice/src/networking/Networking.ts:420:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.20.4

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
The bot worked perfectly fine up until the 2.10.0 release version, after which it started with these problems.

Runtime
I'm running Muse:

  • Directly from the cloned repository
  • Inside a Docker container
  • Something else (please elaborate)

Versions

  • Muse: 2.10.0
  • Docker (if applicable): 4.36.0 (175267)
  • OS: Windows 10 Home 64-bit
  • Node.js: (if running outside the Docker container)
  • ffmpeg: (if running outside the Docker container, 4.1 or later is required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions