GMOD / jbrowse

JBrowse 1, a full-featured genome browser built with JavaScript and HTML5. For JBrowse 2, see https://github.com/GMOD/jbrowse-components.
http://jbrowse.org
Other
463 stars 199 forks source link

syntaxError for gff file when gff is empty for current chromosome #1540

Closed jjjscuedu closed 3 years ago

jjjscuedu commented 4 years ago

Dear all,

When I config my gff annotation for one track, there is an error like the following:

SyntaxError: Unexpected token < in JSON at position.

image

After I check, there is no annotation for the current chromosome/scaffold.

However, I cannot delete this chromosome, because other track have annotation for this chromosme.

Hence, can anyone give me some suggestion how to avoid this problem?

Thanks a lot!

jingjing

cmdcolin commented 4 years ago

You might need to make sure requests for nonexistent files.return status404

This is what jbrowse is running into here, some page is returning maybe HTML for this request and it tries to interpret it as json. If the server returned 404 it would work though

This was seen here recently https://github.com/pombase/website/issues/784

cmdcolin commented 3 years ago

seems like an issue server side config...outside jbrowse scope...maybe close for now

cmdcolin commented 3 years ago

let us know if anything comes up though :)