Closed krlmlr closed 2 years ago
I tried with httr::RETRY(), a home-grown solution works better because RETRY() doesn't take into account the x-ratelimit-reset header.
httr::RETRY()
RETRY()
x-ratelimit-reset
library(clickrup) #> clickrup 0.0.3 2021-04-09 for (i in 1:250) { message("#", appendLF = FALSE) cu_get_teams() } #> # #> ####################################################################################################ClickUp API: Rate limit reached, sleeping for 54 seconds. #> ####################################################################################################ClickUp API: Rate limit reached, sleeping for 53 seconds. #> ################################################# message() #>
Created on 2021-10-02 by the reprex package (v2.0.1)
I tried with
httr::RETRY()
, a home-grown solution works better becauseRETRY()
doesn't take into account thex-ratelimit-reset
header.Created on 2021-10-02 by the reprex package (v2.0.1)