unknown error when playing a song
See original GitHub issueIssue Description
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
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:
- Created 3 months ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
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";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.: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 https://github.com/fent/node-ytdl-core/issues/1167