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

Getting error "Could not parse decipher function" whenever I play anything. #1035

Closed
1 of 3 tasks
gabriel-eladi opened this issue Jun 3, 2024 · 10 comments
Closed
1 of 3 tasks
Labels

Comments

@gabriel-eladi
Copy link

What's happening?
I've been using Muse for a few months now, it was working perfectly. Starting today, I began getting an error 🚫 ope: Could not parse decipher function: Error: Could not match ;([A-Za-z0-9_$]{2,}).\w+( whenever I try to play a song (through a Spotify link, a YouTube link, a YouTube search, none work).

Logs
(I only censored my guild ID)

muse-bot    | 2024-06-03T22:17:42.784Z prisma:client  Prisma Client call:
muse-bot    | 2024-06-03T22:17:42.784Z prisma:client  prisma.setting.findUnique({
muse-bot    |   where: {
muse-bot    |     guildId: 'my-guild-id'
muse-bot    |   }
muse-bot    | })
muse-bot    | 2024-06-03T22:17:42.784Z prisma:client  Generated request:
muse-bot    | 2024-06-03T22:17:42.785Z prisma:client  query {
muse-bot    |   findUniqueSetting(where: {
muse-bot    |     guildId: "my-guild-id"
muse-bot    |   }) {
muse-bot    |     guildId
muse-bot    |     playlistLimit
muse-bot    |     secondsToWaitAfterQueueEmpties
muse-bot    |     leaveIfNoListeners
muse-bot    |     queueAddResponseEphemeral
muse-bot    |     autoAnnounceNextSong
muse-bot    |     defaultVolume
muse-bot    |     createdAt
muse-bot    |     updatedAt
muse-bot    |   }
muse-bot    | }
muse-bot    | 
muse-bot    | 2024-06-03T22:17:42.785Z prisma:client:libraryEngine  sending request, this.libraryStarted: true
muse-bot    | 2024-06-03T22:17:42.882Z muse [VOICE] received voice server: {"t":"VOICE_SERVER_UPDATE","s":8,"op":0,"d":{"token":"983c7119a5eeb225","guild_id":"my-guild-id","endpoint":"frankfurt739.discord.media:443"}}
muse-bot    | 2024-06-03T22:17:44.037Z prisma:client  Prisma Client call:
muse-bot    | 2024-06-03T22:17:44.038Z prisma:client  prisma.setting.findUnique({
muse-bot    |   where: {
muse-bot    |     guildId: 'my-guild-id'
muse-bot    |   }
muse-bot    | })
muse-bot    | 2024-06-03T22:17:44.038Z prisma:client  Generated request:
muse-bot    | 2024-06-03T22:17:44.038Z prisma:client  query {
muse-bot    |   findUniqueSetting(where: {
muse-bot    |     guildId: "my-guild-id"
muse-bot    |   }) {
muse-bot    |     guildId
muse-bot    |     playlistLimit
muse-bot    |     secondsToWaitAfterQueueEmpties
muse-bot    |     leaveIfNoListeners
muse-bot    |     queueAddResponseEphemeral
muse-bot    |     autoAnnounceNextSong
muse-bot    |     defaultVolume
muse-bot    |     createdAt
muse-bot    |     updatedAt
muse-bot    |   }
muse-bot    | }
muse-bot    | 
muse-bot    | 2024-06-03T22:17:44.038Z prisma:client:libraryEngine  sending request, this.libraryStarted: true
muse-bot    | 2024-06-03T22:17:44.039Z muse Error: Could not parse decipher function: Error: Could not match ;([A-Za-z0-9_\$]{2,})\.\w+\(
muse-bot    |     at extractDecipher (/usr/app/node_modules/ytdl-core/lib/sig.js:96:13)
muse-bot    |     at exports.extractFunctions (/usr/app/node_modules/ytdl-core/lib/sig.js:117:3)
muse-bot    |     at /usr/app/node_modules/ytdl-core/lib/sig.js:21:29
muse-bot    |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Additional context
I have tried downgrading to 2.7.1, but I get the same error. To my inexperienced self, it looks like the issue lies with ytdl.

Runtime
I'm running Muse:

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

Versions

  • Muse: 2.8.1
  • Docker (if applicable): 26.1.3
  • OS: Ubuntu Server 22.04 LTS
@Nannerz
Copy link

Nannerz commented Jun 3, 2024

Having the same error

@val-exe
Copy link

val-exe commented Jun 3, 2024

Same here on ytdl@v4.11.4-patch.2

@Olive-Branches
Copy link

Getting the same issue with the latest unraid app

@pablodz
Copy link

pablodz commented Jun 4, 2024

Same here with

  • latest
  • 2.8
  • 2.7
  • 2.6
  • 2.5
  • 2.4
 +0ms
  prisma:client:libraryEngine  sending request, this.libraryStarted: true +2s
  muse /usr/app/src/services/youtube-api.ts:98
  muse       throw new Error('No video found.');
  muse             ^
  muse 
  muse Error: No video found.
  muse     at default_1.search (/usr/app/src/services/youtube-api.ts:98:13)
  muse     at AddQueryToQueue.addToQueue (/usr/app/src/services/add-query-to-queue.ts:121:21)
  muse     at default_1.execute (/usr/app/src/commands/play.ts:49:5)
  muse     at Client.<anonymous> (/usr/app/src/bot.ts:79:13) +2s
prisma:client:libraryEngine:exitHooks  exit event received: SIGINT +0ms

@Thr33Tree
Copy link

Randomly started today. Maybe this has something to do with YouTube changes.

@0xC4DE
Copy link

0xC4DE commented Jun 4, 2024

Issue with me too. Just started with Youtube specifically. Not with spotify.

@STK0Cervanthes
Copy link

yeap same here too

Fresh set up done a few hours ago

joins the VC thinks a lot and then gives that error for both Spotify and Youtube

@torkd
Copy link

torkd commented Jun 4, 2024

Had the same problem yesterday. Building the docker image from this PR which migrates to play-dl mitigates the issue (as in it will reproduce songs from youtube, it will still think a lot).

@gabriel-eladi
Copy link
Author

suddenly, without changing anything, the bot seems to work for me now. it does think longer than usual though.

@gabriel-eladi
Copy link
Author

since the issue seems to have fixed itself, i will close it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants