PoonLab / covizu

Rapid analysis and visualization of coronavirus genome variation
https://filogeneti.ca/CoVizu/
MIT License
45 stars 20 forks source link

Iteration through search results is broken #435

Closed ArtPoon closed 1 year ago

ArtPoon commented 1 year ago

To reproduce:

Snippet from console:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'scrollIntoView')
    at select_working_bead (search.js:443:16)
    at HTMLButtonElement.<anonymous> (covizu.js:482:9)
/api/cid/EPI_ISL_15930625:1          Failed to load resource: the server responded with a status of 503 (Service Unavailable)
/api/cid/EPI_ISL_15930384:1          Failed to load resource: the server responded with a status of 503 (Service Unavailable)
search.js:443 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'scrollIntoView')
    at select_working_bead (search.js:443:16)
    at HTMLButtonElement.<anonymous> (covizu.js:482:9)
style.css:1          Failed to load resource: the server responded with a status of 503 (Service Unavailable)
gisaid.css:1          Failed to load resource: the server responded with a status of 503 (Service Unavailable)
ArtPoon commented 1 year ago

Hm I'm having trouble reproducing this error.

GopiGugan commented 1 year ago

Was not able to reproduce this error either. Do you know when this error occurred?

New data files were uploaded to the web server at ~9 am today. The node server would have been down for about 1-2 minutes so that could explain this error if a search was done at around that time.

ArtPoon commented 1 year ago

I wrote the issue shortly after encountering the error, so that timestamp should be pretty close.

GopiGugan commented 1 year ago

New data files were uploaded to the web server at ~9 am today.

I was looking at the wrong time before. New files were uploaded at 13:31 today, which was around the time the issue was opened

ArtPoon commented 1 year ago

Ok then that's a likely explanation. Would it be possible to have a 503 response trigger a pop-up for the user to know that the server is being updated and is temporarily unavailable?

ArtPoon commented 1 year ago

I'll close this and make a new issue about 503 response