# Error in Spotify backend

**URL:** <https://discourse.mopidy.com/t/error-in-spotify-backend/1109>\
**Category:** Misc\
**Created:** [February 13, 2016, 9:51am UTC](https://discourse.mopidy.com/t/error-in-spotify-backend/1109 "2016-02-13T09:51:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnedvard](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/johnedvard/32/327_2.png) [@johnedvard](https://discourse.mopidy.com/u/johnedvard)\
**Post date:** [February 13, 2016, 9:51am UTC](https://discourse.mopidy.com/t/error-in-spotify-backend/1109/1 "2016-02-13T09:51:36Z")

</div>

I get some errors when I try to play music from Spotify through mopidy. It was just recently it started to produce errors, so I am wondering if you know how to fix this issue? Did Spotify change its backend?

Here is the error:

 ![](https://canada1.discourse-cdn.com/flex036/uploads/mopidy/original/1X/093bfa82bf390d82cbb06a6c23a16b4fa273e232.png)

I am using Node.js, and calling the following code:

```
mopidy.library.search([{"any":["hjerteknuser"]},["local:","spotify:"]]).then(function(res){
            console.log("result: ",res);
            mopidy.tracklist.add([res[0].tracks]);
            mopidy.playback.play();
        });
```

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 13, 2016, 11:39am UTC](https://discourse.mopidy.com/t/error-in-spotify-backend/1109/2 "2016-02-13T11:39:42Z")

</div>

Spotify has, without warning, turned off an API that seems to provide the search part of the libspotify API, something noone outside Spotify knew. This affects both Mopidy-Spotify, lots of other projects and even “smart” receivers.

[https://github.com/mopidy/mopidy-spotify/issues/89](https://github.com/mopidy/mopidy-spotify/issues/89)

---

<div class="post-metadata">

**Author:** ![johnedvard](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/johnedvard/32/327_2.png) [@johnedvard](https://discourse.mopidy.com/u/johnedvard)\
**Post date:** [February 13, 2016, 12:56pm UTC](https://discourse.mopidy.com/t/error-in-spotify-backend/1109/3 "2016-02-13T12:56:55Z")

</div>

Thank you for the information! One part of me is happy because my code is not wrong, but another part is sad because there is nothing I can do to fix it 😥

I hope they will turn their API back on!

---

<div class="post-metadata">

**Author:** ![johnedvard](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/johnedvard/32/327_2.png) [@johnedvard](https://discourse.mopidy.com/u/johnedvard)\
**Post date:** [February 15, 2016, 2:03pm UTC](https://discourse.mopidy.com/t/error-in-spotify-backend/1109/4 "2016-02-15T14:03:08Z")

</div>

I see that you have updated the mopidy-spotify to use spotify’s web-api. Thanks!
