Spotify playlists not showing up and YouTube search not working


#1

Just set up a pi MusicBox on a B+ connected to university wifi, but can’t get Spotify or Youtube to play. Other podcasts work and I can ping Spotify from the pi. I entered the correct info for Spotify (Premium) into the mopidy auth, but nothing can get anything other than the ‘New Releases’ tab to show up.

Here are the results from mopidy.log:

2018-03-15 22:23:05,991 - ERROR Refreshing the auth token failed: HTTPSConnectionPool(host=‘auth.mopidy. com’, port=443): Max retries exceeded with url: /spotify/token (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘SSL3_GET_SERVER_CERTIFICATE’, ‘certificate verify failed’)],)”,),))
2018-03-15 22:23:05,993 - WARNING Did not receive authentication token!
2018-03-15 22:23:05,993 - WARNING Could not initialize spotipy web api instance
2018-03-15 22:23:53,515 - ERROR YouTubeBackend backend caused an exception.
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/mopidy/core/library. py”, line 19, in _backend_error_handling
yield
File “/usr/local/lib/python2.7/dist-packages/mopidy/core/library.py”, line 344, in search
result = future.get()
File “/usr/local/lib/python2.7/dist-packages/pykka/threading.py”, line 52, in get
compat.reraise(*self._data[‘exc_info’])
File “/usr/local/lib/python2.7/dist-packages/pykka/compat.py”, line 12, in reraise
exec(‘raise tp, value, tb’)
File “/usr/local/lib/python2.7/dist-packages/pykka/actor.py”, line 201, in _actor_loop
response = self._handle_receive(message)
File “/usr/local/lib/python2.7/dist-packages/pykka/actor.py”, line 295, in _handle_receive
return callee(*message[‘args’], **message[‘kwargs’])
File “/usr/local/lib/python2.7/dist-packages/mopidy_youtube/backend.py”, line 192, in search
tracks=search_youtube(search_query)
File “/usr/local/lib/python2.7/dist-packages/mopidy_youtube/backend.py”, line 98, in search_youtube
result = session.get(yt_api_endpoint+‘search’, params=query)
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 521, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 508, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python2.7/dist-packages/requests/sessions.py”, line 618, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/requests/adapters.py”, line 506, in send
raise SSLError(e, request=request)
SSLError: HTTPSConnectionPool(host=‘www.googleapis. com’, port=443): Max retries exceeded with url: /youtube/v3/search?q=test&part=id&type=video&key=AIzaSyAl1Xq9DwdE_KD4AtPaE4EJl3WZe2zCqg4&maxResults=15 (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘SSL3_GET_SERVER_CERTIFICATE’, ‘certificate verify failed’)],)”,),))
2018-03-15 22:23:57,516 - ERROR Fetching https://auth.mopidy. com/spotify/token failed: HTTPSConnectionPool(host=‘auth.mopidy. com’, port=443): Max retries exceeded with url: /spotify/token (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘SSL3_GET_SERVER_CERTIFICATE’, ‘certificate verify failed’)],)”,),))


#2

As per the release notes, Youtube search functionality is currently broken and probably won’t be coming back anytime soon.

Unfortunately Spotify broke their legacy playlist API so they are also currently broken. However, your error is to do with certificates and that should all work fine. Is your system date correct? Login via SSH and type date.