Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unknown error when playing a song

See original GitHub issue

Issue Description

What’s happening? When asking the bot to play a song, it fails with unkown error.


clragon@fruit:~ $ docker logs ea6f4c815cfa
yarn run v1.22.19
$ npm run env:set-database-url -- tsx src/scripts/migrate-and-start.ts

> muse@2.1.7 env:set-database-url
> tsx src/scripts/run-with-database-url.ts

================= muse =================
=========== Made with 🎶 by ============
==== =====

Running version 2.1.7 built on 9/20/2022 (commit abdae1a6449d0e3911b45c0dfde3f4b184c17ae0)

🔧 Need help?
🐛 Bug?
✨ New feature?
☕ Discussion?
💰 Help me?

- Applying database migrations...
✔ Database migrations applied.
- 📡 connecting to Discord...
✔ Ready! Invite the bot with

Screenshots th7MNjswyu

Additional context Autocomplete works as normal. The bot starts up as normal. I added DEBUG=* to my environment variables, however there do not seem to be any notable things in the logs.

My docker-compose.yml:

version: '3.4'

    image: codetheweb/muse:latest
    restart: always
      - ./data:/data
      - CACHE_LIMIT=512MB
      - DEBUG=*

(where as XXX replaces my token values)

Runtime I’m running Muse:

  • Inside a Docker container


  • Muse: 2.1.7
  • Docker : 20.10.21, build baeda1f
  • OS: Debian GNU/Linux 11 (bullseye) aarch64

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

jsimchikcommented, Nov 30, 2022

quick work around.

docker exec in apt update apt install nano replace line 115 in /usr/app/node_modules/ytdl-core/lib/sig.js

const decipherScript = functions.length ? new vm.Script(`var MC={QO:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},"if":function(a){a.reverse()},pn:function(a,b){a.splice(0,b)}};${functions[0]}`) : null;

docker restart should work.


jsimchikcommented, Nov 30, 2022

Also seeing issue, started rolling back through previous versions, no luck. getting the following when trying to play from youtube/music

2022-11-30T19:46:02.573Z prisma:client:libraryEngine sending request, this.libraryStarted: true 2022-11-30T19:46:02.592Z muse evalmachine.:1 ;var Xua=function(a){a=a.split(“”);MC"if";,3);MC.QO(a,27);,2);MC"if";MC.QO(a,14);,3);MC.QO(a,68);,3);return a.join(“”)};Xua(sig); ^

ReferenceError: MC is not defined at Xua (evalmachine.:1:36) at evalmachine.:1:165 at Script.runInContext (node:vm:141:12) at Script.runInNewContext (node:vm:146:17) at url (/usr/app/node_modules/ytdl-core/lib/sig.js:88:22) at Object.exports.setDownloadURL (/usr/app/node_modules/ytdl-core/lib/sig.js💯31) at (/usr/app/node_modules/ytdl-core/lib/sig.js:118:13) at Array.forEach () at Object.exports.decipherFormats (/usr/app/node_modules/ytdl-core/lib/sig.js:117:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Might be related to

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unknown Error (-42800) - Apple Support Communities
I'm getting this error almost every song I try and play. I've checked my settings and restarted the app as well as my...
Read more >
The Operation Could Not Be Completed Error ( Music: Fixed!)
Getting 'The Operation Could Not Be Completed' error in Apple Music? An unknown error occurs when you try to play a song? Here...
Read more >
Apple Music The Operation Could Not Be Completed Error ...
When you want to play some music on Apple Music on your iPhone, suddenly it is showing “The Operation Could Not Be Completed...
Read more >
Fix Operation could not be completed Apple Music
The operation could not be completed is an iPhone issue that can occur when trying to play a song in Apple Music. The...
Read more >
42812) when trying to play any song on Apple Music please ...
Unknown error occurred (-42812) when trying to play any song on Apple Music please ... Ohh that's seems to solve the issue audio...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found