After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 546846 - Scrobbling tracks fails most of the time
Scrobbling tracks fails most of the time
Status: RESOLVED INCOMPLETE
Product: banshee
Classification: Other
Component: Last.fm
git master
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-07 18:54 UTC by Michael Monreal
Modified: 2013-03-12 21:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Monreal 2008-08-07 18:54:43 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.
Comment 1 Mads Peter Rommedahl 2008-08-08 12:09:52 UTC
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...
Comment 2 Bertrand Lorentz 2008-08-08 13:05:26 UTC
(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.
Comment 3 Michael Monreal 2008-08-08 13:16:55 UTC
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.
Comment 4 Mads Peter Rommedahl 2008-08-08 18:32:15 UTC
@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.
Comment 5 Gabriel Burt 2009-10-27 20:18:48 UTC
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.
Comment 6 Phil Trimble 2013-03-12 07:43:35 UTC
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.
Comment 7 Michael Monreal 2013-03-12 17:46:59 UTC
(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.
Comment 8 Andrés G. Aragoneses (IRC: knocte) 2013-03-12 17:50:10 UTC
(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?
Comment 9 Michael Monreal 2013-03-12 18:41:09 UTC
(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.
Comment 10 Mads Peter Rommedahl 2013-03-12 20:36:58 UTC
(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
Comment 11 Andrés G. Aragoneses (IRC: knocte) 2013-03-12 21:38:44 UTC
Thanks for your prompt responses guys. We hope you come back to the Linux+Banshee boat soon.