Error in if (success) { : argument is not interpretable as logical
I've also updated the time delay between requests since I got banned when using Sys.sleep(0.15). Assuming no latency at all in addition to instantaneous API responses, 0.15*150 requests = 22.5 seconds. I'm currently using Sys.sleep(0.4) which means that 150 requests take >= 60 seconds which is right at the limit that they set.
The
success
variable isn't a boolean (anymore? because ofhttr
changes?). In any case, this fixes the issue I encounter when running:geolocate(c(NA, "10.0.1.1", "", "72.33.67.89", "dds.ec", " ", "search.twitter.com"), .progress=FALSE)
Error in if (success) { : argument is not interpretable as logical
I've also updated the time delay between requests since I got banned when using
Sys.sleep(0.15)
. Assuming no latency at all in addition to instantaneous API responses, 0.15*150 requests = 22.5 seconds. I'm currently usingSys.sleep(0.4)
which means that 150 requests take >= 60 seconds which is right at the limit that they set.