GMOD / JBrowseR

R interface to the JBrowse 2 Linear Genome View.
https://gmod.github.io/JBrowseR/
Apache License 2.0
35 stars 3 forks source link

Error: HTTP 200(OK) when fetching hg38.fa.gz.gzi ....( should be 206 for range requests) #39

Open suyanxun opened 4 months ago

suyanxun commented 4 months ago

hello, Thank you for developing this tool! The error looks like: Error: HTTP 200(OK) when fetching hg38.fa.gz.gzi ....( should be 206 for range requests) how could I solve it? Thanks.

cmdcolin commented 4 months ago

generally you want a server that supports range requests. very basic servers like python simplehttpserver, or django, do NOT support range requests and they will return erroneous http 200 so won't work with jbrowse

to fix, it is best to set up another http server such as apache httpd or nginx, or python RangeHTTPServer, or something like that to host the data files, and then have your django fetch files from that external server. that's just one way to do it and i'm just guessing from the info you've provided.

cmdcolin commented 4 months ago

I actually neglected to see that this issue was posted to the JBrowseR forum. the same idea still applies, but it would be worthwhile for us to make a improved tutorial about how data from JBrowseR needs to be hosted (i made this issue recently to track this https://github.com/GMOD/JBrowseR/issues/32)