outbreak-info / R-outbreak-info

R package to access the genomics and epidemiology data and Research Library metadata compiled and standardized on outbreak.info.
https://outbreak-info.github.io/R-outbreak-info/
MIT License
19 stars 10 forks source link

Problem with authenticateUser() #100

Open josephhughes opened 1 year ago

josephhughes commented 1 year ago

If I run the following:

b1.177_spain = getPrevalence(pangolin_lineage = "B.1.177", location="Spain")
Retrieving data... 
**Please authenticate by calling authenticateUser() to access the API.**

but any other command works just fine, for example:

b1.177_portugal = getPrevalence(pangolin_lineage = "B.1.177", location="Portugal")
Retrieving data... 

So I've definitely authenticated properly and there should definitely be some B.1.177 from Spain.

Any advice would be much appreciated.

Lukas67 commented 1 year ago

I have a similar problem when querying the database multiple times in row.

Retrieving data... 
Retrieving data... 
Retrieving data... 
Retrieving data... 
Retrieving data... 
Retrieving data... 
Retrieving data... 
Retrieving data... 
Retrieving data... 
Please authenticate by calling authenticateUser() to access the API.

It seems like the database allows only a defined number of queries within a time interval. If this is the case, can you let us know how many queries are possible or give us a lazy loading argument?

BR Lukas