[GH-ISSUE #39] InvalidMessage when playing a song #556

Closed
opened 2026-05-22 23:58:31 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @Allavaz on GitHub (May 26, 2023).
Original GitHub issue: https://github.com/JakeStanger/mpd-discord-rpc/issues/39

Hi, I installed this with cargo, and when I run it it seems to work fine until I play a song, I get a InvalidMessage error:

image

I'm on macOS Monterey if it's any help. Let me know if you need any extra info.

Originally created by @Allavaz on GitHub (May 26, 2023). Original GitHub issue: https://github.com/JakeStanger/mpd-discord-rpc/issues/39 Hi, I installed this with cargo, and when I run it it seems to work fine until I play a song, I get a InvalidMessage error: ![image](https://github.com/JakeStanger/mpd-discord-rpc/assets/8140592/b281c6b4-e12f-465d-b711-4ac54fcc3a3f) I'm on macOS Monterey if it's any help. Let me know if you need any extra info.
Author
Owner

@JakeStanger commented on GitHub (May 26, 2023):

Hey, it looks like that's an issue with the MPD Client library based on the errors. That may be doing something Linux-specific, causing a problem with the connection on macOS.

If you open an issue there, you can reference this one and I'll keep an eye on it and update the library here when I can.

<!-- gh-comment-id:1564922403 --> @JakeStanger commented on GitHub (May 26, 2023): Hey, it looks like that's an issue with the [MPD Client library](https://github.com/elomatreb/mpd_client) based on the errors. That may be doing something Linux-specific, causing a problem with the connection on macOS. If you open an issue there, you can reference this one and I'll keep an eye on it and update the library here when I can.
Author
Owner

@Allavaz commented on GitHub (May 27, 2023):

Turns out it was actually a bug in MPD itself, it was sending invalid UTF-8 when I telnet'd into it and asked for the current song, so mpd_client couldn't handle it. I installed the master branch version of MPD and now it works fine. Also mpd-discord-rpc is working fine now. Thanks for the help!

<!-- gh-comment-id:1565662449 --> @Allavaz commented on GitHub (May 27, 2023): Turns out it was actually a bug in MPD itself, it was sending invalid UTF-8 when I `telnet`'d into it and asked for the current song, so `mpd_client` couldn't handle it. I installed the master branch version of MPD and now it works fine. Also `mpd-discord-rpc` is working fine now. Thanks for the help!
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#556
No description provided.