Ironholds / WikipediR

R's MediaWiki API client library
Other
68 stars 18 forks source link

easy handle already used in multi handle #7

Closed benmarwick closed 9 years ago

benmarwick commented 9 years ago

I often get this error:

Error in function (type, msg, asError = TRUE)  : 
  easy handle already used in multi handle

For example, after a bunch of these: page_info("en","wikipedia", page = "Aaron Halfaker")

I'm guessing this is some kind of rate-limiting from the API. What's best way to get page_info for, say 10,000 pages without running into this error? Thanks!

Ironholds commented 9 years ago

Actually it's not! It's one of the weirdnesses in RCurl, exposed through httr - handle overflows. Hopefully httr 1.0.0 (which depends instead on Jeroen's 'curl') should fix this. If you want to grab the development branch from Hadley's repo that'd be a fix until 1.0.0 goes on CRAN (to be fair, that happens on the 24th)

benmarwick commented 9 years ago

Ok, thanks, yes I've updated httr and that error has gone. Thanks again!