Py-StackExchange
Py-StackExchange copied to clipboard
502 [throttle_violation]: Violation of backoff parameter
I got this kind of error each time when I get around 350 objects returned and printed out. And then it ends with this error. I did use an API key and I'd like the program to wait and continue when it hits the rating limit. My purpose is to get around 10000 questions from StackOverflow. Did anyone come into this ever?
{"error_id":502,"error_message":"Violation of backoff parameter","error_name":"throttle_violation"}
Hello,
To have the API perform this throttling for you, instantiate the Site
instance with the impose_throttling = True
parameter, e.g.:
so = stackexchange.Site('stackoverflow.com', impose_throttling = True)
If you are providing this parameter and the error still occurs, it'd be helpful to see some code if possible — how the Site
object is created and the calls you use to obtain the questions. :)
@lucjon Thanks for your response. :) I did specify 'impose_throttling = True' and still got this error. I'll look into the code s bit probably.
Same issue here.
I know this is an older issue but I'm getting this error with impose_throttling=True.. Are there any solutions?
Any news on that?
for what it's worth, adding import imp at the head of of my (python) file fixed exactly that issue for me