error sending data to last.fm: BADSESSION
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MTP-Lastfm |
Fix Committed
|
Medium
|
Daniel Woodhouse |
Bug Description
Running Lucid Lynx Kubuntu. Installed today's update and the app connected happily to my c905 SE phone. Scrobbling from this device has worked before. My 40 recent plays are found and listed as pending in the details pop-up. However scrobbling fails like this:
Scrobbling started 2.0 hours ago
Preparing 40 tracks for scrobbling
Sending tracks, waiting for reply...
There was an error sending data to last.fm:
BADSESSION
I'm listening on Amarok right now and those tracks are scrobbling in real-time. Bulk pushing plays from my rockbox-enabled ipod with the command-line last.fm tool worked in parallel with Amarok, staggering the scrobble times to now in the same way mtp-lastfm does, so the problem appears to be mtp-lastfm specific. I tried pushing the scrobble time back manually and apart from the timestamp in the message changing, no difference.
There's no errors.log file under ~/.mtp-lastfm and the db.log contains only the warnings about invalid files (locally-created video recordings) that the information button pops-up. Nothing on the command-line.
From Last.fm:
BADSESSION
This indicates that the Session ID sent was somehow invalid, possibly because another client has performed a handshake for this user. On receiving this, the client should re-handshake with the server before continuing.
At the moment MTP-Lastfm only does a handshake at startup so if amarok or another media player did a handshake it would be rendered invalid. This is an easy enough fix.