Issue loading IndexedFastaAdapter from Azure Blob Storage using SAS links #4953
-
|
Greetings fellow JBrowsers, I’m encountering an issue while attempting to load a reference sequence directly from Azure Blob Storage using SAS links in JBrowse2. Current setupWe are running JBrowse 2 in a Docker container using the following setup: We are running this in Docker Compose: ConfigurationWe are trying to add a The Error encounteredWe see the following error in the browser: Notes and observations
…but the result was the same. QuestionHas anyone successfully used Azure Blob Storage with SAS links to load an ReferenceSequenceTrack in JBrowse2? Are there specific CORS settings we might be missing, or is the issue something else? Any insight would be greatly appreciated! I did not find anything mentioning Azure in other discussions, but maybe I missed those... Thank you for any input you might have! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
there is sort of a lot going on in this question, so it's hard to address all aspects of this but i can say
TroubleshootingError: Failed to fetch fetching https://storageacount.blob.core.windows.net/path/to/the/folder/SomeReference.fai?sv=ThisWillBeOurSASKeyToTheBlobContainer this is the most important aspect. it more than likely indicates cors error. you will need to fix the cors configuration on azure blob storage. you can look in your browsers network log to see what the cors error is. the error is opaque (unreadable) by javascript for security concerns, making it hard for jbrowse to properly report any better error message. Extra noteThe notion of using "temporary SAS tokens" in a persistent config.json may not be best practice. if they expire, there is no notion of refreshing them. for specialized cases like this, it may be worth it to instead use our embedded components, or a specialized 'internet account', which will retrieve the sas token dynamically using client side javascript rather than hardcoding it in the config it is more work, but these kinds of specialized authentications often are. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @cmdcolin, |
Beta Was this translation helpful? Give feedback.

you can try cors-tester https://cors-test.codehappy.dev/ to see if your azure blob URLs work with cors. here is an example with a file from jbrowse.org, that confirms our volvox fai file is successfully requested via cors https://cors-test.codehappy.dev/?url=https%3A%2F%2Fjbrowse.org%2Fcode%2Fjb2%2Fmain%2Ftest_data%2Fvolvox%2Fvolvox.fa.fai&origin=https%3A%2F%2Fcors-test.codehappy.dev%2F&method=get
if you get a success, but it still doesn't work in jbrowse, please paste the response headers