nypublicradio / audiogram

Turn audio into a shareable video.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected token T in JSON at position 0

sward13 opened this issue · comments

I'm trying to set up a new instance on OSX, and am getting the following error when running the audiogram. Any ideas on where to go from here?

Error in settings/themes.json:
SyntaxError: Unexpected token T in JSON at position 0

I'm getting the same exact error on OSX Sierra.

I'm getting this same error on OS X Sierra 10.12.6
Completely fresh install following the instructions in the readme
tried both Node 6.11.4 and 8.6.0
FYI: error listed in the title is for Chrome
In Firefox it is: "Error in settings/themes.json:
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 5 of the JSON data"
In Safari it is: "No themes found in settings/themes.json."

this is happening to me too, on Chrome — and OS X Yosemite 10.10.5

Did y'all look at #96?

In package.json, I changed d3 to "d3": "4.10.0" and did an npm install and now it works.

Hi all,

Ok. I had to do a combo of 2 solutions to get it working.

  1. In package.json, change d3 to "d3": "4.10.0"
  2. In bundle.js, line 134, change d3.json("/settings/themes.json", function(err, themes){ to
    d3.json(window.location.protocol + "//" + window.location.host + "/settings/themes.json", function(err, themes){

Finished it up with a nmp install then npm start and worked like a champ!