[GH-ISSUE #24] "Failed to set activity: Failed to subscribe to event" #282

Closed
opened 2026-05-22 22:58:21 +01:00 by JakeStanger · 10 comments
Owner

Originally created by @logkos on GitHub (May 30, 2022).
Original GitHub issue: https://github.com/JakeStanger/mpd-discord-rpc/issues/24

Entering idle mode
Exiting idle mode
Failed to set activity: Failed to subscribe to event

I've tried both cargo and AUR package using defaults. I'm using the regular discord package of Arch Linux.

Originally created by @logkos on GitHub (May 30, 2022). Original GitHub issue: https://github.com/JakeStanger/mpd-discord-rpc/issues/24 ``` Entering idle mode Exiting idle mode Failed to set activity: Failed to subscribe to event ``` I've tried both cargo and AUR package using defaults. I'm using the regular `discord` package of Arch Linux.
JakeStanger 2026-05-22 22:58:21 +01:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@JakeStanger commented on GitHub (May 31, 2022):

Hey, thanks for reporting, I've not seen this one before. Has the program ever worked for you before?

From some digging, I can see that the error comes from the discord RPC crate trying to make the connection to Discord.

One thing to check is if other rich presence-setting programs work for you (any game that supports it or script you find online or whatever).

Also it might be worth checking the option to display your status is on, in case Discord just doesn't startup the RPC server if it's off:
image

<!-- gh-comment-id:1141831213 --> @JakeStanger commented on GitHub (May 31, 2022): Hey, thanks for reporting, I've not seen this one before. Has the program ever worked for you before? From some digging, I can see that the error comes from the discord RPC crate trying to make the connection to Discord. One thing to check is if other rich presence-setting programs work for you (any game that supports it or script you find online or whatever). Also it might be worth checking the option to display your status is on, in case Discord just doesn't startup the RPC server if it's off: ![image](https://user-images.githubusercontent.com/5057870/171128271-66ae959e-e56f-4061-8b4f-5daeae31b998.png)
Author
Owner

@neilmehra commented on GitHub (Sep 7, 2022):

I noticed this same problem earlier today, using the AUR package.

Other applications are successfully able to control my activity status, such as Spotify and osu!.

image

<!-- gh-comment-id:1238840274 --> @neilmehra commented on GitHub (Sep 7, 2022): I noticed this same problem earlier today, using the AUR package. Other applications are successfully able to control my activity status, such as Spotify and osu!. ![image](https://user-images.githubusercontent.com/45741682/188775319-f3e24423-9172-4722-b9ec-2fc9fbc998f0.png)
Author
Owner

@JakeStanger commented on GitHub (Sep 7, 2022):

Odd... same question for you - was it working for you previously? Also what discord package are you using? The more info the better at this stage as I've not a clue what's going on.

<!-- gh-comment-id:1239822698 --> @JakeStanger commented on GitHub (Sep 7, 2022): Odd... same question for you - was it working for you previously? Also what discord package are you using? The more info the better at this stage as I've not a clue what's going on.
Author
Owner

@neilmehra commented on GitHub (Sep 10, 2022):

No, this was the first time I have tried running it. I'm currently using the official discord package off the AUR.

<!-- gh-comment-id:1242809374 --> @neilmehra commented on GitHub (Sep 10, 2022): No, this was the first time I have tried running it. I'm currently using the official [`discord`](https://archlinux.org/packages/community/x86_64/discord/) package off the AUR.
Author
Owner

@JakeStanger commented on GitHub (Sep 10, 2022):

Okay so I guess the most obvious route would be environment, if the same code is running & connecting to the same client fine for others. I know Arch works fine because I'm running it on that.

Are you using anything non-standard/security enhanced, like a hardened kernel or SELinux or a different init system or anything like that? What DE/WM/Compositor & Wayland or Xorg?

<!-- gh-comment-id:1242810111 --> @JakeStanger commented on GitHub (Sep 10, 2022): Okay so I guess the most obvious route would be environment, if the same code is running & connecting to the same client fine for others. I know Arch works fine because I'm running it on that. Are you using anything non-standard/security enhanced, like a hardened kernel or SELinux or a different init system or anything like that? What DE/WM/Compositor & Wayland or Xorg?
Author
Owner

@neilmehra commented on GitHub (Sep 18, 2022):

Well, oddly enough the issue just resolved itself haha. I tried to reproduce this on my laptop, but that ended up in vain. Not really sure what fixed it as I haven't updated my system since then, but I guess all's well that ends well.

For what it's worth, I was using bspwm and xorg on both my desktop and laptop.

<!-- gh-comment-id:1250361197 --> @neilmehra commented on GitHub (Sep 18, 2022): Well, oddly enough the issue just resolved itself haha. I tried to reproduce this on my laptop, but that ended up in vain. Not really sure what fixed it as I haven't updated my system since then, but I guess all's well that ends well. For what it's worth, I was using bspwm and xorg on both my desktop and laptop.
Author
Owner

@JakeStanger commented on GitHub (Sep 21, 2022):

Interesting, glad it's resolved at least. Thanks for the extra details.

<!-- gh-comment-id:1254028419 --> @JakeStanger commented on GitHub (Sep 21, 2022): Interesting, glad it's resolved at least. Thanks for the extra details.
Author
Owner

@sivaplaysmC commented on GitHub (Nov 18, 2022):

@JakeStanger this issue arises when playing a non mp3 file , like a .webm file

while playing other files like mp3s , there seemes to be no problems

plus a huge 👍 for your effort into this very useful application and I'm glad i am able to help the development
of a very useful application 😃 😃 😃 !

<!-- gh-comment-id:1320064788 --> @sivaplaysmC commented on GitHub (Nov 18, 2022): @JakeStanger this issue arises when playing a non mp3 file , like a .webm file while playing other files like mp3s , there seemes to be no problems plus a huge :+1: for your effort into this very useful application and I'm glad i am able to help the development of a very useful application :smiley: :smiley: :smiley: !
Author
Owner

@JakeStanger commented on GitHub (Nov 19, 2022):

Hm, that's interesting. I wonder if that's because it doesn't have the standard song metadata so one or more of the required fields end up blank. It sounds like I should be able to resolve this by just sticking "N/A" or "unknown" in place of the empty tags.

<!-- gh-comment-id:1320979787 --> @JakeStanger commented on GitHub (Nov 19, 2022): Hm, that's interesting. I wonder if that's because it doesn't have the standard song metadata so one or more of the required fields end up blank. It sounds like I should be able to resolve this by just sticking "N/A" or "unknown" in place of the empty tags.
Author
Owner

@unitythemaker commented on GitHub (Jan 20, 2023):

Hm, that's interesting. I wonder if that's because it doesn't have the standard song metadata so one or more of the required fields end up blank. It sounds like I should be able to resolve this by just sticking "N/A" or "unknown" in place of the empty tags.

I have the same problem and yeah problem only happens when a song without metadata plays. It would be awesome if you have checked that fields for if they are empty and replace it with "unknown". It gets solved automatically when next song plays.

<!-- gh-comment-id:1398477613 --> @unitythemaker commented on GitHub (Jan 20, 2023): > Hm, that's interesting. I wonder if that's because it doesn't have the standard song metadata so one or more of the required fields end up blank. It sounds like I should be able to resolve this by just sticking "N/A" or "unknown" in place of the empty tags. I have the same problem and yeah problem only happens when a song without metadata plays. It would be awesome if you have checked that fields for if they are empty and replace it with "unknown". It gets solved automatically when next song plays.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/mpd-discord-rpc#282
No description provided.