InputUsername/rescrobbled

Authentication failed on last.fm

Opened this issue · 9 comments

Hi, getting an "authentication failed" error:

Failed to authenticate with Last.fm

Caused by:
    Authentication failed: Non Success status (403)

My config is simply:

lastfm-key = "bc7...b42"
lastfm-secret = "02b...591"
player-whitelist = ["mpd"]

The user and pass is correct and working, tested both on the website and other applications.

Have you been able to authenticate before? (ie. the session file exists)

If yes, try removing it and logging in again with username/password.

If no, could you try using a different API key/secret to see if that works?

Hi, sorry for taking so long to reply.

  1. No, I've never been able to authenticate before.
  2. Tried with multiple api keys to no avail.

I ended migrating my scrobbling and all my data (~9 years) to listenbrainz, but I can help debug, just need some instructions of how to get more verbose logs or something like that.

Ps: Before getting to your application (which is very nice) I tried both mpdscribble and mpdas without success (both with problems with authentication) so the problem may not be on your end.
Also, before recently migrating to mpd from mopidy I used a mopidy-scrobbler for scrobbling without any problems.

EDIT: Also tried mpris-scrobbler and encountered the same problems with authentication

Hi, sorry for taking so long to reply.

1. No, I've never been able to authenticate before.

2. Tried with multiple api keys to no avail.

I ended migrating my scrobbling and all my data (~9 years) to listenbrainz, but I can help debug, just need some instructions of how to get more verbose logs or something like that.

Ps: Before getting to your application (which is very nice) I tried both mpdscribble and mpdas without success (both with problems with authentication) so the problem may not be on your end. Also, before recently migrating to mpd from mopidy I used a mopidy-scrobbler for scrobbling without any problems.

EDIT: Also tried mpris-scrobbler and encountered the same problems with authentication

Interesting, not sure what the problem could be then. I'd be happy to investigate this further but I'm really busy at the moment. I'll get back to you later, debugging help would be much appreciated!

@xmalbertox Hi, I finally have some more time to look into this. Apologies for the delay.

I've created a fork of the Last.fm library (rustfm-scrobble) which uses a different HTTP library. A build of rescrobbled that uses this fork can be found on the use-rustfm-scrobble-fork branch. If you're able to build Rust projects, could you please give that a try? I can also send over a binary if needed.

I have no idea if this helps, but #67 also seems to have issues authenticating, so maybe it's worth a try.

Thanks!

I had the same issue with last.fm, and wasn't able to use the master branch binary on my work laptop (while it works well on my personal laptop).

The use-rustfm-scrobble-fork now works on my work laptop, so I think @xmalbertox should probably look into it.

@hegdenischay Thank you for confirming! It could very well be a proxy issue then.

Hi, i have the same issue:

Log in to Last.fm
Username: uname
Password: pass
Failed to authenticate with Last.fm

Caused by:
    Authentication failed: Status code 403 Forbidden indicates failure

I can't see the fork you are mentioning.

I can't see the fork you are mentioning.

Yes, proxy support is now in the main program (version 0.6.0), but looks like it's not a proxy issue in your case. Have you tried using different API key/secret? Not sure why you're getting a 403

Same issue here. Created an API key for last.fm just now. This is my first time using the application. No proxy. Using git master.

Nov 26 23:36:18 archlinux rescrobbled[90553]: Log in to Last.fm
Nov 26 23:36:18 archlinux rescrobbled[90553]: Username: Password: Failed to authenticate with Last.fm
Nov 26 23:36:18 archlinux rescrobbled[90553]: Caused by:
Nov 26 23:36:18 archlinux rescrobbled[90553]:     0: Failed to read password
Nov 26 23:36:18 archlinux rescrobbled[90553]:     1: No such device or address (os error 6)

Update: Nevermind, I had to start rescrobbled as a non-daemon first and authenticate.