th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.99k stars 512 forks source link

Discord plug-in doesn't work #496

Closed Lysime closed 1 year ago

Lysime commented 3 years ago

I use the latest release of the app and Ubuntu 21.10. I activated the Discord plug-in on the app but it doesn't show up on my DIscord profile, and when I try to reconnect this pop-up appears. image Is there anything I might have not done properly?

Araxeus commented 2 years ago

If you're willing to help me troubleshoot this (by either building yourself or I could send you compiled binaries) add me on discord Araxeus#0819

Lysime commented 2 years ago

What's the last digit of your tag?

Araxeus commented 2 years ago

Araxeus # 0819

sorry github is formatting this very weirdly, try writing that without space and you'll see it hides the 0 lol

Lysime commented 2 years ago

Request sent

Araxeus commented 2 years ago

For future reference the error code is

Error: Could not connect
    at Socket.onerror (youtube-music/node_modules/discord-rpc/src/transports/ipc.js:32:16)
    at Object.onceWrapper (events.js:422:26)
    at Socket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

at https://github.com/discordjs/RPC/blob/6f83d8d812c87cb7ae22064acd132600407d7d05/src/transports/ipc.js#L35-L39

that means the discord rpc encountered an error while doing net.createConnection(path) which means discord-rpc could not connect to discord-desktop