Page 1 of 1

Connecting to LastFM : Forbidden ?

PostPosted: Sat Aug 09, 2014 10:43 am
by totoclectic
Hello,

I using Music Cabinet and I have some error when I configure an user's lastfm credentials.
API key is ok and I'm able to authorize the application, but it seems that the session key isn't received by the callback.

Here's the error :

Exception : om.github.hakko.musiccabinet.exception.ApplicationException
Message : Could not get session key for user! (code 403, Forbidden)

Here's the log :

[2014-08-09 12:08:23,864] DEBUG LastFmSettingsController - token = 82d196409ce0de93872e64ef925e934
[2014-08-09 12:08:23,864] DEBUG LastFmSettingsController - lastFmUsername = null, sessionKey = null
[2014-08-09 12:08:12,208] DEBUG LastFmSettingsController - callback url = http://XX.XX.XX.XX:4040/lastFmSettings.view
[2014-08-09 12:08:12,207] DEBUG LastFmSettingsController - Prepare data for last.fm auth.

I'm running out of ideas on how to fix this permission issue.. Has anyone got one ?

Thanks!

Re: Connecting to LastFM : Forbidden ?

PostPosted: Sat Aug 09, 2014 2:49 pm
by shadow.8
I haven't tested Last.fm in a while but I found this: http://www.last.fm/api/errorcodes It simply suggests to reauthorize. Have you tried logging into Last.fm and removing music cabinet from your applications then trying again?