question-mark
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

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

Logs

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 ============
==== https://github.com/codetheweb =====
========================================
========================================

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

🔧 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


- Applying database migrations...
✔ Database migrations applied.
- 📡 connecting to Discord...
✔ Ready! Invite the bot with https://discordapp.com/oauth2/authorize?client_id=XXX&scope=bot%20applications.commands&permissions=XXX

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'

services:
  muse:
    image: codetheweb/muse:latest
    restart: always
    volumes:
      - ./data:/data
    environment:
      - DISCORD_TOKEN=XXX
      - YOUTUBE_API_KEY=XXX
      - SPOTIFY_CLIENT_ID=XXX
      - SPOTIFY_CLIENT_SECRET=XXX
      - REGISTER_COMMANDS_ON_BOT=true
      - CACHE_LIMIT=512MB
      - DEBUG=*

(where as XXX replaces my token values)

Runtime I’m running Muse:

  • Inside a Docker container

Versions

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

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
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.

ymmv!

1reaction
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.<anonymous>:1 ;var Xua=function(a){a=a.split(“”);MC"if";MC.pn(a,3);MC.QO(a,27);MC.pn(a,2);MC"if";MC.QO(a,14);MC.pn(a,3);MC.QO(a,68);MC.pn(a,3);return a.join(“”)};Xua(sig); ^

ReferenceError: MC is not defined at Xua (evalmachine.<anonymous>:1:36) at evalmachine.<anonymous>: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 <anonymous> (/usr/app/node_modules/ytdl-core/lib/sig.js:118:13) at Array.forEach (<anonymous>) 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 https://github.com/fent/node-ytdl-core/issues/1167

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found