# Spotify search no longer working

**URL:** <https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597>\
**Category:** Pi MusicBox (archive)\
**Created:** [April 26, 2017, 10:05am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597 "2017-04-26T10:05:12Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [April 26, 2017, 10:05am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/1 "2017-04-26T10:05:13Z")

</div>

Hi, Spotify search just stopped working on my Pi Music Box. I only get “No tracks found”. It still worked yesterday. Anyone else affected or is it just me? Searching from local files and other services works, playing back Spotify playlists works, only search fails. I restarted my Music Box but it didn’t help.

---

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [April 26, 2017, 11:47am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/2 "2017-04-26T11:47:05Z")

</div>

Hmm this only seems to affect the default web client – Spotify search works in Mopify.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 26, 2017, 1:08pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/3 "2017-04-26T13:08:17Z")

</div>

Because Mopify makes it’s own calls to a different Spotify API i.e. it only uses mopidy-spotify (libspotify) for playback.

I’m seeing the exact same thing myself. I also noticed a load of Roku users were reporting similar problems on the Spotify forums; I believe the Roku boxes also use libspotify.

However, mopidy-spotify v3.x (non-Pi Musicbox) is still working just fine. I need to get a debug log and see what’s going wrong in our old version.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 26, 2017, 3:09pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/4 "2017-04-26T15:09:25Z")

</div>

Uh oh, `ChannelError` messages.

```auto
2017-04-26 14:51:35,968 DEBUG [6267:HttpServer] mopidy.http.handlers: Received WebSocket message from 172.22.0.55: u'{"method":"core.library.search","params":{"query":{"any":["underoath"]},"uris":["spotify:"]},"jsonrpc":"2.0","id":86}'
2017-04-26 14:51:35,972 DEBUG [6267:SpotifyBackend-10] mopidy_spotify.library: Spotify search query: underoath
2017-04-26 14:51:35,982 DEBUG [6267:Dummy-12] mopidy_spotify.session_manager: System message: 14:51:35.982 E [ap:4210] ChannelError(0, 1, search)
2017-04-26 14:51:36,007 DEBUG [6267:HttpServer] mopidy.http.handlers: Sent WebSocket message to 172.22.0.55: '{"jsonrpc": "2.0", "id": 86, "result": [{" __model__": "SearchResult", "uri": "spotify:search:underoath"}]}'

```

And I now remember why this doesn’t occur in mopidy-spotify v3.x etc. [When Spotify broke it last time in 2016](https://developer.spotify.com/news-stories/2016/03/22/recent-issues-libspotify/) we moved to use the Web API for searching as Spotify actually maintains this. There is no guarantee Spotify will fix this issue, last time it took them about a month to respond. Which means I need to revise my Pi Musicbox release plans.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 27, 2017, 11:44pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/5 "2017-04-27T23:44:15Z")

</div>

I’ve backported a fix from the latest version of mopidy-spotify. You can install it with:

```auto
pip install --no-deps https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip

```

If you are not in the UK you’ll need to also specify your account country code in settings.ini in order for the search results to be playable in your region:

```auto
[spotify]
# Supply your PREMIUM account credentials to enable Spotify
enabled = false
username = 
password = 
# Two letter country code for your account (see https://en.wikipedia.org/wiki/ISO_3166-1)
user_country = GB
# The bitrate, the quality of the music played by Spotify, can be set to 96, 160 (default) or 320
bitrate = 320
cache_dir = ""

```

---

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [April 28, 2017, 7:47am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/6 "2017-04-28T07:47:12Z")

</div>

Hi, I tried this but I don’t think it worked.

When I run the command I get SNIMissingWarning, two InsecurePlatformWarnings and this:

Downloading [https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip](https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip)  
Requirement already satisfied (use --upgrade to upgrade): Mopidy-Spotify==1.4.0 from [https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip](https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip) in /usr/local/lib/python2.7/dist-packages

---

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [April 28, 2017, 7:50am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/7 "2017-04-28T07:50:22Z")

</div>

Also this in musicbox\_startup.log:

WARNING Found spotify configuration errors, the extension has been automatically disabled:  
WARNING spotify/user\_country unknown config key.  
WARNING Please fix the extension configuration errors or disable the extensions to silence these messages.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 28, 2017, 10:47am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/8 "2017-04-28T10:47:20Z")

</div>

Hi,  
Sorry I messed up that command, the suggestion in the error message is correct and the following should do it:

```auto
pip install --no-deps --upgrade https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip

```

That warning message will go away once you have successfully installed the updated version using the above command.

---

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [April 29, 2017, 10:08am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/9 "2017-04-29T10:08:39Z")

</div>

Perfect, thanks! 👍

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [April 29, 2017, 10:23am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/10 "2017-04-29T10:23:20Z")

</div>

From what I read on the Spotify forums earlier there is a good chance they’ve now fixed it themselves. But that’s not to say they won’t break it again next week so this (short-term) solution is the best way forward for now.

---

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [May 30, 2017, 5:11pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/11 "2017-05-30T17:11:58Z")

</div>

Oh dear, it seems Spotify search is broken again.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [May 30, 2017, 5:37pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/12 "2017-05-30T17:37:53Z")

</div>

Yes, they have changed the authorisation required for their Web API endpoints (which this workaround was using). However, they have since fixed libspotify search so we can go back to using that. I need to push the reverted version when I get home.

---

<div class="post-metadata">

**Author:** ![benji\_potter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/benji_potter/32/602_2.png) [@benji\_potter](https://discourse.mopidy.com/u/benji_potter)\
**Post date:** [May 31, 2017, 12:18pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/13 "2017-05-31T12:18:41Z")

</div>

Hello, I want to try this, but I get a 404…  
Have you got another URI for this file?

```
Collecting https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip
HTTP error 404 while getting https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip
Could not install requirement https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip because of error 404 Client Error: Not Found for url: https://github.com/pimusicbox/mopidy- spotify/archive/pimusicbox/v1.4.x.zip
Could not install requirement https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip because of HTTP error 404 Client Error: Not Found for url: https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip for URL https://github.com/pimusicbox/mopidy-spotify/archive/pimusicbox/v1.4.x.zip
```

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [May 31, 2017, 12:40pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/14 "2017-05-31T12:40:52Z")

</div>

You do not need that code, search should work out of the box.

---

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [May 31, 2017, 1:51pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/15 "2017-05-31T13:51:34Z")

</div>

Can I restore Spotify search by doing clean install, or is there some other way to roll back the previous fix?

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [May 31, 2017, 4:00pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/16 "2017-05-31T16:00:17Z")

</div>

Sorry, yes, clean install or try something like:  
`pip install --no-deps --ignore-installed mopidy-spotify==1.4.0`

---

<div class="post-metadata">

**Author:** ![anttiautio](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@anttiautio](https://discourse.mopidy.com/u/anttiautio)\
**Post date:** [May 31, 2017, 8:05pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/17 "2017-05-31T20:05:39Z")

</div>

Hi, tried both methods, both worked 🙂 Search works fine with the exception of artist/cover images, they no longer seem to load.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [May 31, 2017, 9:29pm UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/18 "2017-05-31T21:29:44Z")

</div>

Oh yeh, I forgot that images have always been fetched from the Web API, which Spotify have now changed to require authentication. Maybe I will have to backport the fix that’s hopefully going into the latest mopidy-spotify. That’s annoying, thanks Spotify.

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2651_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/spotify-search-no-longer-working/1597/19 "2026-02-19T11:47:19Z")

</div>

Closed on February 19, 2026, 11:47am UTC


