Closed alanwilter closed 3 years ago
I'm trying Firefox Debugger, asking to pause on Exceptions
. Simply starting the page and the debugger already shows me issues. See figure:
Debug screenshot when trying to access a variant:
Another error message while accessing a variant from the Gene page:
frontend_1 | [HPM] Proxy created: / -> http://app:5000
app_1 | [E::get_intv] Failed to parse TBX_VCF, was wrong -p [type] used?
app_1 | The offending line was: ":.:. ./.:.:.:.:. ./.:.:.:.:. ./.:.:.:.:. ./.:.:.:.:. ./.:.:.:.:. ./.:.:.:.:. ./.:.:.:.:. ./.:.:.:.:.
This is related to the routine to retrieve VCF data from AWS S3.
Another screenshoot, while trying to Expand More
button:
Working on my dev branch mig_variant
#340 and it seems to have showed some stability improvement though I still have some issues
Hi @alanwilter The error happens because one attributes is NULL, which is the fourth raw list in meta panel:
I have fixed it, will merge now.
Thanks @YuanTian1991, I noticed that sending empty strings to frontend seems to have improved. Definitely Null or None types were not playing nicely with frontend. But my finds were only on my mig_variant
branch.
The real root of this issue was cyvcf2
on my Mac.
I've detected these issues while working on #340, thinking that I've had introduced a bug somehow. However, it's currently in our
dev-live
branch and, as far as I can see, it has been there for months (I've tested several older commits back to Feb).I couldn't reproduce these issues in
prod-live
ordev-live
.So what are the issues? I've seen two particular cases:
Setup Use branch
dev-live
, start all 3 docker containers as fromphenopolis_browser
folder:Then open http://localhost:8888/variant/14-76156575-A-G I'm testing with 3 different browsers: Safari, Chrome and Firefox, all using
inspect mode
with cache disabled.Case 1: simply trying to access the http://localhost:8888/variant/14-76156575-A-G On my local mac, although it may work at first try, it then stop working after reloading, failing with:
In other situations (like in
Debug
mode withVSCode
) I've seen these error messages:gene
page, e.g., http://localhost:8888/gene/ENSG00000119685 After restarting the docker containers (see Setup above), clicking in a variant chip, which usually works to open the variant page, then clicking inExpand More
, page turns blank and then throws the errors seen in the figure below, while logs shows no issues.I can't guarantee the steps above will be 100% reproducible but it definitely happens all the time on my local setup or when running the docker services on
overdrive
remotely and accessing via port 8888 ssh tunnelled to my local mac.A side note, running
pytest
works fine, as well as usingcurl
like: