GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
208 stars 62 forks source link

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #4512

Closed MeiDongI closed 3 months ago

MeiDongI commented 3 months ago

I got this error from JBrowse, here is the stack trace:

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
SessionLoader.ts:200:27 (at Object.fetchConfig ()
SessionLoader.ts:330:7 (at async Object.afterCreate ()
cmdcolin commented 3 months ago

this error would indicate that an HTML file is being returned when the config.json is trying to be fetched. you could probably reproduce this in your web browser by visiting the link e.g. "http://yourhost/jbrowse/config.json" to confirm this

this could be because your server is returning a 404 as an HTML file (and not the proper status code), or this is a dev server that is doing this, or it is a permission denied error like a 403. if you can narrow down what it is, then we might be able to provide further help but it's likely a server side issue like this

cmdcolin commented 3 months ago

let me know if you have any continued issues....might close for now