Closed oganm closed 2 years ago
getting HTTP code 429
helpful comment by javier
https://github.com/PavlidisLab/gemma.R/blob/master/tests/testthat/testConvenience.R#L8-L9
Dima's description of the server rate limiting
no more than 2 concurrent connections for "/rest/v2/datasets/*/data" no more than 10req/sec (for everything with API) no more than 100 concurrent connections (for everything with API)
Initially suspected the first point could be the issue since Jordan mentioned using asynchronous calls to speed things up but looking at the code this doesn't seem to be a problem. Since the tests do always seem to pass locally will add the skip clause to those tests for now and return after other fixes in case there is a preventable cause of the failure
This is added a crude fix to the issue. Need to see if errors persist
Ammended the solution to check for null responses and retry up to three times in case of failure. So far all looks fine.
New tests occasionally seem to fail. Possibly due to gemma's rate limiting.