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

Authentication failed on last.fm #65

Open
xmalbertox opened this issue Mar 23, 2022 · 9 comments
Open

Authentication failed on last.fm #65

xmalbertox opened this issue Mar 23, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@xmalbertox
Copy link

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.

@InputUsername
Copy link
Owner

InputUsername commented Mar 24, 2022

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?

@xmalbertox
Copy link
Author

xmalbertox commented Mar 26, 2022

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

@InputUsername
Copy link
Owner

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!

@InputUsername InputUsername added the bug Something isn't working label Mar 29, 2022
@InputUsername
Copy link
Owner

InputUsername commented May 22, 2022

@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!

@hegdenischay
Copy link

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.

@InputUsername
Copy link
Owner

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

@InputUsername InputUsername added this to the v0.6.0 milestone Jun 16, 2022
@InputUsername InputUsername removed this from the v0.6.0 milestone Jul 20, 2022
@mmatasic
Copy link

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.

@InputUsername
Copy link
Owner

InputUsername commented Aug 20, 2022

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

@Znurre

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants