Comment 3 for bug 620854

Revision history for this message
Adam Porter (alphapapa) wrote :

Ok, here are some notes about what I just figured out:

By default, GStreamer errors call self.next_song(). If the auth token is still valid, this goes through the rest of the songs in the list, and if it runs out, it gets a new playlist and keeps playing.

But if the auth token is invalid, it ends up in eb() and retries. So all that's needed, apparently, is to advance to the next song--which Pithos already does!

The problem may be this error I just encountered:

INFO - pithos:eb:307 - Automatic reconnect after invalid auth token
ERROR - pandora:xmlrpc_call:135 - fault: org.apache.xmlrpc.XmlRpcException: For input string: "91198140128"
WARNING - pithos:eb:314 - Traceback (most recent call last):
  File "/home/me/Projects/Python/Pithos/620854/./pithos/gobject_worker.py", line 34, in _run
    result = command(*args)
  File "/home/me/Projects/Python/Pithos/620854/./pithos/pandora/pandora.py", line 169, in connect
    user = self.xmlrpc_call('listener.authenticateListener', [user, password], [], secure=True)
  File "/home/me/Projects/Python/Pithos/620854/./pithos/pandora/pandora.py", line 136, in xmlrpc_call
    code, msg = fault.split('|')[2:]
ValueError: need more than 0 values to unpack

This same error can happen whenever Pithos connects, even on startup. And I filed this as lp:905204.

So, if I understand everything correctly (and I may not), this bug is occurring because lp:905204 is happening sometimes--otherwise it's already handled.