fastv
fastv copied to clipboard
Plotly not listed as a dep, and http served sylesheet is blocked
Hello-
I have been unable to get fastv to render any visualizations, and realized from the example reports that plotly was being used, but not listed as a dependency. Does it need to be on the command line for the reports to render (I am using v0.10, built from source on ubuntu 18. Reports are generated, just no graphics.
I then looked in electron, and see this error message:
fastv.html:1 Mixed Content: The page at 'https://web.clvr.locusdev.net/external_data/research_e0xperiments/EX4712/RU28524/raw_data/fastvv/fastv.html' was loaded over HTTPS, but requested an insecure script 'http://opengene.org/plotly-1.2.0.min.js'. This request has been blocked; the content must be served over HTTPS.
It appears that at least in my network envirionment, the plotly-1.2.0.min.js is being blocked b/c it is not serve via https. I expect this problem is experienced more widely.
I'm going to hack the html to point at a local copy of the js for the time being with a perl regex. * This didn't work b/c of certificate issues. So, my solution was to
wget https://opengene.org/plotly-1.2.0.min.js
to a central location, and have the tag point to this copy, which did work!
<script src='./plotly-1.2.0.min.js'></script>