How to change "LIMIT RATE" settings?

65 views
Skip to first unread message

Gianluca Busiello

unread,
Sep 6, 2023, 9:49:14 AM9/6/23
to Review Board Community
I'm running RB v4.x and I'm affected by the error:

API Error 114: API Rate Limit Exceeded

which is due to the http response from the server:

urllib.error.HTTPError: HTTP Error 429: Too Many Requests

when running a large query through the rbtools library.

I would like to relax the rate limits to make my query work reliably and I have found out that the setting "API_AUTHENTICATED_LIMIT_RATE" is what I am looking for.
I tried to set it to None in settings_local.py as a first step, but it doesn't seem to have any effect on the rate limit.
My questions are:
- is settings_local.py the right place to control the settings?
- is "None" the right value to disable api limit rates? or should I override the default with a new value?

Any help would be really appreciated.
Regards,
Gianluca


David Trowbridge

unread,
Sep 6, 2023, 11:51:52 AM9/6/23
to revie...@googlegroups.com
Hi,

That should be the correct setting to change. You probably need to restart the web server in order for that change to take effect.

David

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/e1792527-035d-4804-96e9-155b83e6c9d0n%40googlegroups.com.

Gianluca Busiello

unread,
Sep 7, 2023, 10:43:28 AM9/7/23
to Review Board Community
Thanks David,
the reviewboard service is running in a container which was restarted when I tested the new settings. I'll try again and let you know what happens!
Regards,
Gianluca

Gianluca Busiello

unread,
Sep 8, 2023, 5:08:51 AM9/8/23
to Review Board Community
[SOLVED]
Used an explicit configuration set to 10 times the defaults:

API_AUTHENTICATED_LIMIT_RATE = "100000/h"   # Default 10,000/h
API_ANONYMOUS_LIMIT_RATE = "10000/h"    # Default 1,000/h
LOGIN_LIMIT_RATE = "50/m"   # Default 5/m

Not sure if the problem was in the use of "None" as value.
Reply all
Reply to author
Forward
0 new messages