PoonLab / covizu

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

CORS policy blocking fetch request of lab/submitted info #526

Closed ArtPoon closed 2 months ago

ArtPoon commented 3 months ago
covizu/:1 Access to fetch at 'https://www.epicov.org/acknowledgement/08/94/EPI_ISL_16390894.json' from origin 'https://filogeneti.ca' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Failed to load resource: net::ERR_FAILED             https://www.epicov.org/acknowledgement/08/94/EPI_ISL_16390894.json
Uncaught (in promise) TypeError: Failed to fetch
    at getAckData (gisaid.js?random=1:157:5)
    at Object.getAcknowledgementData (gisaid.js?random=1:225:4)
    at HTMLSpanElement.<anonymous> (beadplot.js:1164:18)
    at HTMLSpanElement.<anonymous> (d3.js:1526:16)
GopiGugan commented 3 months ago

image

ArtPoon commented 3 months ago

Seems like this API is no longer supported by GISAID?

ArtPoon commented 3 months ago

This is loading for some sample numbers and not for others. Is it possible to determine what range of accession numbers are affected by this?

ArtPoon commented 3 months ago

We should display a brief message in the tooltip when there are no data returned from querying the GISAID API with a given accession number to keep the interface consistent.

ArtPoon commented 3 months ago
GopiGugan commented 3 months ago

Added the following text in the tooltip when there is an error with the API call: GISAID API call did not return data for this accession number

ArtPoon commented 3 months ago

Close after PR