Unexpected error in get_variants_by_efo_id: Error: length(efo_trait) not greater than 0
ramiromagno opened this issue · 0 comments
ramiromagno commented
gwasrapidd:::get_variants_by_efo_id(efo_id = 'EFO_0000000')
Warning: The request for https://www.ebi.ac.uk/gwas/rest/api/efoTraits/EFO_0000000 failed: response code was 404.
Error: length(efo_trait) not greater than 0
In addition: Warning message:
In gc_request_all(resource_url = resource_url, base_url = base_url, :
Error: length(efo_trait) not greater than 0
That call should not err, but only trigger a warning.
The problem comes from not asserting the NULL
value in:
Line 181 in d51d07a
and moving on to the call get_variants_by_efo_trait
empty-handed.
A manifestation of issue #3 .