Skip to main content
edited tags
Source Link
Glorfindel
  • 6.9k
  • 3
  • 22
  • 49

I'm doing a run every 5 seconds for this API call:

url = f"https"https://api.stackexchange.com/2.3/questions/no-answers?pagesize=30&fromdate={date_today}&order=desc&sort=creation&site=stackoverflow&access_token=" + accessToken + "&key=" + key

And sometimes I get this response:

{
  "error_id": 502,
  "error_message": "Violation of backoff parameter",
  "error_name": "throttle_violation"
}

How is it possible that I am exceeding the limit when it is 30 requests per second?

I don't know about this error answer and from what I've seen in other questions, it's about threshold crossing, but I'm not sure.

I'm doing a run every 5 seconds for this API call:

url = f"https://api.stackexchange.com/2.3/questions/no-answers?pagesize=30&fromdate={date_today}&order=desc&sort=creation&site=stackoverflow&access_token=" + accessToken + "&key=" + key

And sometimes I get this response:

{
  "error_id": 502,
  "error_message": "Violation of backoff parameter",
  "error_name": "throttle_violation"
}

How is it possible that I am exceeding the limit when it is 30 requests per second?

I don't know about this error answer and from what I've seen in other questions, it's about threshold crossing, but I'm not sure.

I'm doing a run every 5 seconds for this API call:

url = "https://api.stackexchange.com/2.3/questions/no-answers?pagesize=30&fromdate={date_today}&order=desc&sort=creation&site=stackoverflow&access_token=" + accessToken + "&key=" + key

And sometimes I get this response:

{
  "error_id": 502,
  "error_message": "Violation of backoff parameter",
  "error_name": "throttle_violation"
}

How is it possible that I am exceeding the limit when it is 30 requests per second?

I don't know about this error answer and from what I've seen in other questions, it's about threshold crossing, but I'm not sure.

Source Link

How does 1 request every 5 seconds exceed the 30 requests per second limit?

I'm doing a run every 5 seconds for this API call:

url = f"https://api.stackexchange.com/2.3/questions/no-answers?pagesize=30&fromdate={date_today}&order=desc&sort=creation&site=stackoverflow&access_token=" + accessToken + "&key=" + key

And sometimes I get this response:

{
  "error_id": 502,
  "error_message": "Violation of backoff parameter",
  "error_name": "throttle_violation"
}

How is it possible that I am exceeding the limit when it is 30 requests per second?

I don't know about this error answer and from what I've seen in other questions, it's about threshold crossing, but I'm not sure.