Hi.
I am trying to make 500 requests, and because of the limit of 100 requests per minute I told my code to wait for 70 seconds after every 90 requests (just to be sure).
However I still get Too Many Requests Error (429 error) on 20% of the requests.
Do you have any suggestions? Am I doing something wrong?
Thank you,
Shai
아래에 의견을 추가하고 토론에 참여하세요.
Hi Shai. I reached out to RapidAPI, and they said it might be a temporary issue on their side. The error should be gone now.
Thank you very much Hao.
Please keep my updated if there is anything new at shaio@codefuel.com
Shai
Hi Shai,
Thank you for your example request. I tried to reproduce based on your description, and I was able to hit the 429 error as well. Upon debugging, it appears that the 429 error is coming from RapidAPI proxy. It seems like RapidAPI tends to be stricter than the rate limit that the developer has specified. I try raising the rate limit for the premium plan to 300/minutes as well as removing it, yet I can still hit the 429 error.
I will reach out to RapidAPI to see what they say. In the mean time, I would recommend catching the 429 error, and retry after a few minutes.
Best,
Hao
example request:
response:
Hi Shai,
Do you have a sample response (including the response headers) when the 429 error occurred? I checked RapidAPI analytics dashboard and could not find any 429 error there. Having some extra information like a sample request+response and the approximate time when it occurred would be very helpful.
Thanks,
Hao