GNOME Bugzilla – Bug 546846
Scrobbling tracks fails most of the time
Last modified: 2013-03-12 21:38:44 UTC
For some time now I get those warings: [Warn 20:32:22.565] Audioscrobbler upload failed - The request timed out and was aborted [Warn 20:32:22.565] Failed to get the request stream - Aborted. (in `System') at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetRequestStream (IAsyncResult ar) [0x00000] [Warn 20:33:28.565] Audioscrobbler upload failed - The request timed out and was aborted [Warn 20:33:28.565] Failed to get the request stream - Aborted. (in `System') at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetRequestStream (IAsyncResult ar) [0x00000] [Warn 20:34:29.648] Failed to get the request stream - Error: ConnectFailure (in `System') at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetRequestStream (IAsyncResult ar) [0x00000] [Warn 20:35:58.466] Audioscrobbler upload failed - The request timed out and was aborted [Warn 20:35:58.466] Failed to get the request stream - Aborted. (in `System') at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetRequestStream (IAsyncResult ar) [0x00000] [Warn 20:37:04.467] Audioscrobbler upload failed - The request timed out and was aborted [Warn 20:37:04.467] Failed to get the request stream - Aborted. (in `System') at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetRequestStream (IAsyncResult ar) [0x00000] [Warn 20:38:05.541] Failed to get the request stream - Error: ConnectFailure (in `System') at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetRequestStream (IAsyncResult ar) [0x00000] [Warn 20:39:07.544] Failed to get the request stream - Error: ConnectFailure (in `System') I can play last.fm radio just fine and recommendations work, too. Strange: Some of the tracks I play actually make it to last.fm, but much later than I actually played them.
I get somewhat the same errors in Banshee 1.2: [Warn 13:14:22.614] Failed to get the request stream - Aborted. (in `System') at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetRequestStream (IAsyncResult ar) [0x00000] [Warn 13:14:26.035] Audioscrobbler NowPlaying failed - Failed to post NowPlaying: System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception: at System.Net.WebConnection.HandleError(WebExceptionStatus st, System.Exception e, System.String where) at System.Net.WebConnection.ReadDone(IAsyncResult result) at System.Net.Sockets.Socket+SocketAsyncResult.Complete() at System.Net.Sockets.Socket+Worker.Receive() at System.MulticastDelegate.invoke_void() at System.Net.WebConnection.HandleError (WebExceptionStatus st, System.Exception e, System.String where) [0x00000] --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.NowPlayingGetResponse (IAsyncResult ar) [0x00000] [Warn 13:14:35.245] Audioscrobbler NowPlaying failed - Session ID sent was invalid [Warn 13:16:00.746] Audioscrobbler upload failed - Plugin bug: Not all request variables are set - no POST parameters. [Warn 13:16:09.148] Failed to get the response: System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception: at System.Net.WebConnection.HandleError(WebExceptionStatus st, System.Exception e, System.String where) at System.Net.WebConnection.ReadDone(IAsyncResult result) at System.Net.Sockets.Socket+SocketAsyncResult.Complete() at System.Net.Sockets.Socket+Worker.Receive() at System.MulticastDelegate.invoke_void() at System.Net.WebConnection.HandleError (WebExceptionStatus st, System.Exception e, System.String where) [0x00000] --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetResponse (IAsyncResult ar) [0x00000] [Warn 13:17:22.002] Failed to get the response: System.Net.WebException: Error getting response stream (ReadDone1): ReceiveFailure ---> System.IO.IOException: EndRead failure ---> System.Net.Sockets.SocketException: Connection reset by peer at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00000] at System.Net.Sockets.Socket.EndReceive (IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x00000] at System.Net.Sockets.Socket.EndReceive (IAsyncResult result) [0x00000] at System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x00000] --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x00000] at System.Net.WebConnection.ReadDone (IAsyncResult result) [0x00000] --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] at Lastfm.AudioscrobblerConnection.TransmitGetResponse (IAsyncResult ar) [0x00000] [Warn 13:50:51.537] Caught an exception - The remote server returned an error: (404) Not Found. (in `System') at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] According to the IRC folks it seems to be an API change of LastFM...
(In reply to comment #1) Could you look into the file "~/.cache/banshee-1/extensions/last.fm/audioscrobbler-queue.xml" and see if anything looks wrong. If you think there is, please attach it here. This message : > [Warn 13:16:00.746] Audioscrobbler upload failed - Plugin bug: Not all request variables are set - no POST parameters. makes me think that something is wrong in the data banshee is trying to send to Last.fm. But that would not explain why NowPlaying is failing. Please also check that your username and password are set correctly in banshee.
I do not see the error Mads Peter Rommedahl posted. I have however tried to remove the xml file and it did not change anything.
@Bertrand: No, nothing looks out of the ordinary... The file starts with the following: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <AudioscrobblerQueue> <QueuedTrack> <Artist>Motörhead</Artist> <Album>Sacrifice</Album> <Title>Sacrifice</Title> <TrackNumber>1</TrackNumber> <Duration>196</Duration> <StartTime>1216642624</StartTime> <MusicBrainzId /> <TrackAuth /> </QueuedTrack> <QueuedTrack> <Artist>Motörhead</Artist> <Album>Sacrifice</Album> <Title>Sex and Death</Title> <TrackNumber>2</TrackNumber> <Duration>122</Duration> <StartTime>1216642821</StartTime> <MusicBrainzId /> <TrackAuth /> </QueuedTrack> <QueuedTrack> <Artist>Motörhead</Artist> <Album>Sacrifice</Album> <Title>Over Your Shoulder</Title> <TrackNumber>3</TrackNumber> <Duration>197</Duration> <StartTime>1216642944</StartTime> <MusicBrainzId /> <TrackAuth /> </QueuedTrack> I have tried deleting it, but it just keeps coming back. Also, I have double-checked my login info, and nothing appears wrong there.
Bulk changing the assignee to banshee-maint@gnome.bugs to make it easier for people to get updated on all banshee bugs by following that address. It's usually quite apparent who is working on a given bug by the comments and/or patches attached.
I know that this is very old but I wanted to see if the original submitter(s) had any luck with the newer versions of Banshee. We have introduced a lot of new logic surrounding Last.FM submissions and I bet that the issue is resolved now. We did experience some issues in the past surrounding the timestamp for the songs and so maybe we are good to go with the recent updates.
(In reply to comment #6) > I know that this is very old but I wanted to see if the original submitter(s) > had any luck with the newer versions of Banshee. I have not used Last.FM for quite some time, sorry. I am also not using Banshee atm because it did not support Opus last time I tried.
(In reply to comment #7) > (In reply to comment #6) > > I know that this is very old but I wanted to see if the original submitter(s) > > had any luck with the newer versions of Banshee. > > I have not used Last.FM for quite some time, sorry. Are you willing to test this again or should we close the bug? > I am also not using Banshee > atm because it did not support Opus last time I tried. opus support is committed to master, can you try the master branch?
(In reply to comment #8) > Are you willing to test this again or should we close the bug? No, I don't even have a last.fm account anymore. Maybe Mads Peter Rommedahl is still around? > opus support is committed to master, can you try the master branch? Good news. However I do not have time for this right now. I will probably have to wait until a stable version with it shows up in Fedora.
(In reply to comment #9) > (In reply to comment #8) > > Are you willing to test this again or should we close the bug? > > No, I don't even have a last.fm account anymore. Maybe Mads Peter Rommedahl is > still around? Nope, sorry. I'm off the Linux boat atm. I'll probably come back at some later date, but due to numerous reformats I won't be able to replicate this bug either way. You have my blessing to close it - if I ever encounter it again, I'll open a new bug report
Thanks for your prompt responses guys. We hope you come back to the Linux+Banshee boat soon.