Py-StackExchange icon indicating copy to clipboard operation
Py-StackExchange copied to clipboard

502 [throttle_violation]: Violation of backoff parameter

Open ludai0106 opened this issue 8 years ago • 6 comments

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"}

ludai0106 avatar Mar 29 '16 13:03 ludai0106

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 avatar Mar 29 '16 17:03 lucjon

@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.

ludai0106 avatar Mar 29 '16 18:03 ludai0106

Same issue here.

GokulRG avatar Oct 31 '16 04:10 GokulRG

I know this is an older issue but I'm getting this error with impose_throttling=True.. Are there any solutions?

gijswobben avatar Sep 09 '17 13:09 gijswobben

Any news on that?

webyneter avatar Nov 15 '17 09:11 webyneter

for what it's worth, adding import imp at the head of of my (python) file fixed exactly that issue for me

katzemelli avatar Sep 09 '22 09:09 katzemelli