crflynn / pypistats.org

PyPI downloads analytics dashboard
https://pypistats.org/
138 stars 10 forks source link

Intermittent 429 RATE LIMIT EXCEEDED #42

Closed domdfcoding closed 2 years ago

domdfcoding commented 2 years ago

Hi,

I am intermittently faced with a 429 RATE LIMIT EXCEEDED error when browsing pypistats.org

I'm only browsing the odd page, not making tonnes of requests through the API, so this is a little odd. It doesn't happen all of the time; maybe 25-30% of requests succeed. I have confirmed this on a different device using a different internet connection, so I think this is an issue at your end rather than mine.

simonw commented 2 years ago

I just got the 429 error browsing the site homepage from my phone at home! I don't think I exceeded the rate limit - I guess it's possible I hit 30 resources within a minute if it's counting CSS and image loads too? https://github.com/crflynn/pypistats.org/blob/da4d4aa8da682047330dc8f6c5a8ea49c88e7905/pypistats/run.py#L23

Sodium-Hydrogen commented 2 years ago

I am seeing a 429 for all attempts from my ip address including the very first one in days. I am not able to view any pages no matter how long I wait between attempts.

JessicaS11 commented 2 years ago

@learn2pheonix and I are having the same issues. We were trying to test a download script only to discover we can't even navigate to https://pypistats.org/ without getting the error. Any idea what's going on or if a resolution is being worked on? I'd like to know if I need to switch to getting my PyPI stats another way!

crflynn commented 2 years ago

Lots of request spam (abuse) and a misconfigured limiter. Should be back to normal.