Package API Rate Limiting #103
Replies: 3 comments 4 replies
-
It is indeed rate limited but I think we found that pulsar queries all its packages each time which was inflating the numbers. I think a pr was made to add a deeper cache to prevent this. |
Beta Was this translation helpful? Give feedback.
-
I'll add here that you are right, I dont think we have updated the docs to say the API is rate limited. Although it should be high enough that any normal usage shouldn't hit it. If you'd like if you could include some of the packages you clicked to install or search that failed and I can try to see what happened to cause the limit to get hit we can see about increasing this value. But for reference, we enabled the rate limit out of need when our servers were getting hit hard. And since being enabled has already been bumped significantly to try and ensure users don't hit the limit in day to day activities. Currently, our rate limit is 200 requests granted to authentictaed endpoints and 200 for unauthenticated endpoints per 15-minute window per IP Address |
Beta Was this translation helpful? Give feedback.
-
@dazlab I did want to let you know, I did my best to review todays activity, and nothing seemed out of the ordinary. The issue lies mainly in the fact that the old Atom code that hits these servers isn't very nice, meaning every time the editor is launched it checks if any packages need an update, which makes sense, but it does this for every installed package, all at the same time, so it can be a massive amount of hits each time you open the editor. But to prevent this from affecting you again, I've raised the limit to both endpoints to 300, so ideally you shouldn't see this message again under normal usage |
Beta Was this translation helpful? Give feedback.
-
Hi,
Apologies if this has been covered already; I can't find any reference to it.
Seem to have encountered the attached when adding a few packages. Not sure if it's a bug, or if the API is rate limited at present.
Beta Was this translation helpful? Give feedback.
All reactions