Anyone else having problems with Spotify playlists/API lately?

Without any change in setup, playlist album art stopped loading, and today the loading of playlist items stopped, too. The list of playlists is still loading but not contents of the list. Is anyone else seeing this, before I allocate pre-christmas time to check my code in depth? :slight_smile:

I hit this late last week and forgot to submit the workaround, which I have now done so thanks to this reminder. Can you try the latest code from Github?

Did a
sudo python3 -m pip install https://github.com/mopidy/mopidy-spotify/archive/master.zip
but that didn’t work, same problem, possibly the wrong URL? I know nothing about Github. :slight_smile:

I think this might be a new problem, I’m having trouble myself now today

Cancel that, it’s working fine. I was being stupid and was using the wrong config file for my workspace.

Try

sudo python3 -m pip install -I https://github.com/mopidy/mopidy-spotify/archive/master.zip

?

1 Like

That worked for playlist content, and song art is showing now, too. Playlist thumbnails are not working however, might be an error on my part of course.

I’d need to see some log messages for that.

This is likely it:

Dec 20 13:59:00 debian11 mopidy[161654]: ERROR    [Core-8] mopidy.core.library SpotifyBackend backend caused an exception.
Dec 20 13:59:00 debian11 mopidy[161654]: Traceback (most recent call last):
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
Dec 20 13:59:00 debian11 mopidy[161654]:     yield
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 194, in get_images
Dec 20 13:59:00 debian11 mopidy[161654]:     if future.get() is None:
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 45, in get
Dec 20 13:59:00 debian11 mopidy[161654]:     _compat.reraise(*self._data['exc_info'])
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/lib/python3/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Dec 20 13:59:00 debian11 mopidy[161654]:     raise value
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Dec 20 13:59:00 debian11 mopidy[161654]:     response = self._handle_receive(envelope.message)
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Dec 20 13:59:00 debian11 mopidy[161654]:     return callee(*message.args, **message.kwargs)
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/local/lib/python3.9/dist-packages/mopidy_spotify/library.py", line 35, in get_images
Dec 20 13:59:00 debian11 mopidy[161654]:     return images.get_images(self._backend._web_client, uris)
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/local/lib/python3.9/dist-packages/mopidy_spotify/images.py", line 26, in get_images
Dec 20 13:59:00 debian11 mopidy[161654]:     result.update(_process_uri(web_client, uri))
Dec 20 13:59:00 debian11 mopidy[161654]:   File "/usr/local/lib/python3.9/dist-packages/mopidy_spotify/images.py", line 62, in _process_uri
Dec 20 13:59:00 debian11 mopidy[161654]:     _cache[uri["key"]] = tuple(_translate_image(i) for i in data["images"])
Dec 20 13:59:00 debian11 mopidy[161654]: TypeError: 'NoneType' object is not iterable

Have you got an example image URI? Spotify have recently made subtle changes to their API responses without telling anyone.

Not right now, sorry, I’ll have to delve into my own code for that.

I think I’ve found the problem(s). Again, they have changed the response format.

Merged potential fixes in images: more robust to missing fields by kingosticks · Pull Request #370 · mopidy/mopidy-spotify · GitHub

Indeed, this worked. :slight_smile: Woo hoo! Christmas is saved! :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.