mdlayher / mpdsub

Command mpdsubd provides a Subsonic HTTP API bridge to a backing MPD server. MIT Licensed.
MIT License
6 stars 2 forks source link

dsub fails to fetch music listings #2

Open anarcat opened 6 years ago

anarcat commented 6 years ago

Hi!

great project, I love the idea.

i'm trying to figure out why the dSub android client is giving me the following error message:

Error

A problem occurred communicating with the server. Please check the server address and verify that you can connect using a regular browser on your device.

A regular browser gives me the following when connecting to the port:

<subsonic-response status="failed" version="1.14.0"><error code="10" message="Required parameter is missing."/></subsonic-response>

The test connection button works in the settings, so I think i'm able to connect to the server. but it looks like some bits are missing somewhere. I tried running the server with -v but nothing seems wrong there:

curie:Music$ sudo docker run --volume ~/Music/:/srv:ro  --publish 4040:4040 -it --rm  mdlayher/mpdsub  -mpd.addr marcos:6600 -user foo -pass bar -mpd.music.dir /srv -v
2017/11/11 19:15:23 connected to MPD: tcp://marcos:6600
2017/11/11 19:15:23 starting HTTP server: :4040
2017/11/11 19:15:33 192.168.0.186:50830 -> POST /rest/getAlbumList.view?u=...&p=enc:...&v=1.2.0&c=DSub&type=random&size=20&offset=0

Any idea how to diagnose this further?

anarcat commented 6 years ago

i can also reproduce with the "Subsonic" android app, by tapping the "recently added" button. the error there is:

Error

Didn't understand the reply. Please check the server address.

The "Playlist" tab also gives that error.

Again, the "test connection" button works there too. Interestingly, the "Library" tab works there and i can play/stream music from there, but no covers are found (which I guess is expected?) and song titles are missing.

mdlayher commented 6 years ago

Not really sure, sorry. I built this as a one off and don't use it anymore, and don't plan on continuing development. If you figure it out though, PRs welcome.

For what it's worth, I just use Plex for music now too.