-
Notifications
You must be signed in to change notification settings - Fork 64
Description
When developing with the Zenodo API (invenio-rdm) sandbox, I often get 429 TOO MANY REQUESTS errors.
The sandbox rate limit is only 133 requests per minute for guest users, which is very restrictive and makes development difficult. Browsers send an OPTIONS request automatically before certain API calls, such as file uploads due to CORS policy, and these OPTIONS requests count toward the limit even though they don’t count as productive calls.
With the new API system, a record can have up to 100 files, but uploading 100 files will always exceed the 133 requests/minute limit because each file upload requires multiple requests, including OPTIONS ones.
This makes it impossible to fully test batch uploads without hitting the rate limit immediately. Raising the sandbox limit, excluding OPTIONS requests from the rate calculation, or providing an alternative testing setup would make development and testing significantly easier.