Too Many Requests issue

Hi ,

We are encountering the “Too Many Requests” error very often on sites with a lot of activity. Even deleting a couple hundred docs causes this error and it wasn’t so previously. I believe the line causing this issue is below:

https://github.com/frappe/frappe/blob/version-13/frappe/rate_limiter.py#:~:text=return%20Response(_(“Too%20Many%20Requests”)%2C%20status%3D429

Current workaround is either to wait till the top of the hour when it automatically resets or to reboot the server! We haven’t found a way to set the rate limit from the UI which seems to be a significant oversight! We need a solution urgently as it’s becoming a bit of a nuisance

Thanks

Opened a Github Issue as well…

https://github.com/frappe/frappe/issues/16641

Thanks

Okay… So for anyone facing a similar issue, you can set the rate limit from site_config or even remove it altogether

Cheers!

1 Like