Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libre.fm: Code 6 #43

Closed
privong opened this issue Jul 31, 2017 · 8 comments
Closed

libre.fm: Code 6 #43

privong opened this issue Jul 31, 2017 · 8 comments

Comments

@privong
Copy link

privong commented Jul 31, 2017

I have encountered an error after upgrading to version 0.4.3. I am using mpdas to connect to libre.fm and am now getting the following error:

$ mpdas
(11:49:39) [ERROR] You are not root. Not changing user ..
(11:49:39) [INFO] Using Libre.fm service URL
(11:49:39) [INFO] Connected to MPD.
(11:49:41) [ERROR] Code: 6
(11:49:41) [INFO] Closing mpdas.

I get the same error whether I use the MD5 password or have it entered into the config file as plaintext. I was unable to find additional information in the mpdas source on what Code 6 means.

My configuration file is:

username = librefmusername
password = mypassword
runas = myuser
debug = 1
service = librefm

Please let me know if there is additional information I can provide.

@hrkfdn
Copy link
Owner

hrkfdn commented Aug 25, 2017

I had to make some changes to the protocol implementation as Last.fm is deprecating parts that we used for authentication. Seems that Libre.fm doesn't like this. I'll have to create an account and investigate this.

@hrkfdn
Copy link
Owner

hrkfdn commented Aug 26, 2017

Libre.fm does not implement the latest Last.fm API, which is why with the new changes it doesn't work anymore: https://github.com/foocorp/gnu-fm/blob/master/nixtape/2.0/index.php#L803

Seems it's on their list, but hasn't been fixed yet. Not sure what to do here, I could implement two authentication mechanisms, but I rather wouldn't want to.

@privong
Copy link
Author

privong commented Aug 28, 2017

Seems it's on their list, but hasn't been fixed yet. Not sure what to do here, I could implement two authentication mechanisms, but I rather wouldn't want to.

Understandable. Since opening the issue, I've downgraded to the last version that supports the old auth mechanism. I'll avoid upgrading for now. I guess I'll play it by ear.

Maybe for now you could have mpdas throw an error if service = libre.fm, so other users will know it's an issue with the authorization method?

@hrkfdn
Copy link
Owner

hrkfdn commented Aug 30, 2017

I guess, but then I'd have to push out another release at some point to re-enable it. A warning could do, I suppose. Their last commit was in October 2016, guess they're not that active anymore? Just wondering, as we can't be the only ones noticing this..

@privong
Copy link
Author

privong commented Sep 1, 2017

Re: their development activity, I don't really know if it's a temporary lull or if it's been abandoned. But I was also a little surprised no one else has reported the issue.

@hrkfdn hrkfdn closed this as completed in 4b997f7 Nov 6, 2017
@hrkfdn
Copy link
Owner

hrkfdn commented Nov 6, 2017

@privong I have re-implemented the changes required by Libre.fm. Could you give the master branch a try?

@privong
Copy link
Author

privong commented Jul 31, 2018

@hrkfdn Sorry it took me so long to check this. I had a long period of not using mpd and just resumed using it again. I can confirm that your fix worked and I can again use mpdas with libre.fm. Thanks for fixing this!

@motorto
Copy link

motorto commented Apr 12, 2021

Sorry to reopen an old issue , @hrkfdn

But I am having the same issue:

 $> mpdas -c $HOME/.mpdasrc
(20:53:47) [INFO] Using Libre.fm service URL
(20:53:47) [INFO] Connected to MPD.
(20:53:48) [ERROR] Code: 6
(20:53:48) [INFO] Closing mpdas.

This is my config on $HOME/.mpdasrc

service = librefm
username = username
password = password
host = localhost
debug = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants