Error in curlPerform(url = burl, httpheader = c(Accept = "text/xml", Accept = "multipart/*", : couldn't connect to host
I occasionally get this error when calling getCompleteMarketPricesCompressed using the betfaiR package in R. I have a Sys.sleep(1) and a few operations inbetween calls so should not be exceeding the limits. Currently when this error is thrown my loop gets broken and stops running, is there a way to either avoid this problem or to handle it so that my loop can continue?
Many Thanks