# JSON errors suddenly occurring

**URL:** <https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457>\
**Category:** Misc\
**Created:** [May 14, 2022, 2:39am UTC](https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457 "2022-05-14T02:39:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![caitsith01](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/caitsith01/32/2053_2.png) [@caitsith01](https://discourse.mopidy.com/u/caitsith01)\
**Post date:** [May 14, 2022, 2:39am UTC](https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457/1 "2022-05-14T02:39:17Z")

</div>

Hi - for some reason, out of nowhere as far as I can see, whenever I try to use Iris to browse music (local and Spotify) I get weird database errors. Specifically, I get:

`SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data`

I can’t browse or play any media. This happens on a Windows 10 PC using Firefox/Chrome or on an Android phone.

I’m not sure exactly what this means, or how I can fix this without totally hosing my installation and starting over (which would be super annoying)?

The strange thing is that this seems to have just come out of nowhere - I didn’t change or upgrade anything as far as I know before this started happening, when previously everything was working well.

---

<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 14, 2022, 4:46pm UTC](https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457/2 "2022-05-14T16:46:47Z")

</div>

Where do you get this error? In your web browser? The Mopidy error log? The iris debug logging? Are you sure you are connecting to the correct port? Need more details.

---

<div class="post-metadata">

**Author:** ![caitsith01](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/caitsith01/32/2053_2.png) [@caitsith01](https://discourse.mopidy.com/u/caitsith01)\
**Post date:** [May 16, 2022, 12:50am UTC](https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457/3 "2022-05-16T00:50:03Z")

</div>

Web browser - sorry, I thought that was obvious from “This happens on a Windows 10 PC using Firefox Chrome”.

If I access the Pi using a browser, when I click on any category in Iris (albums, artists, etc) I get that error after a second or two and it never finds any media locally or on Spotify.

---

<div class="post-metadata">

**Author:** ![caitsith01](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/caitsith01/32/2053_2.png) [@caitsith01](https://discourse.mopidy.com/u/caitsith01)\
**Post date:** [May 16, 2022, 12:52am UTC](https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457/4 "2022-05-16T00:52:39Z")

</div>

It seems to me that something has gone wrong with the media database - is there a way to force mopidy to rebuild it?

---

<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 16, 2022, 3:05am UTC](https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457/5 "2022-05-16T03:05:13Z")

</div>

Mopidy has no media database for Spotify content. Mopidy local has a media database you can clear, very much doubt that’ll help: [GitHub - mopidy/mopidy-local: Mopidy extension for playing music from your local music archive](https://github.com/mopidy/mopidy-local#clearing-the-library)

Iris has its own state, instructions to reset at [Advanced · jaedb/Iris Wiki · GitHub](https://github.com/jaedb/Iris/wiki/Advanced#debugging) but presumably you tried that already. If you have not already done so, read the iris troubleshooting page. And then the Mopidy troubleshooting page.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [November 14, 2022, 3:05pm UTC](https://discourse.mopidy.com/t/json-errors-suddenly-occurring/5457/6 "2022-11-14T15:05:23Z")

</div>

Closed on November 14, 2022, 3:05pm UTC

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