Re: How to change "LIMIT RATE" settings?

2023-09-08 Thread Gianluca Busiello
[SOLVED]
Used an explicit configuration set to 10 times the defaults:

API_AUTHENTICATED_LIMIT_RATE = "10/h"   # Default 10,000/h
API_ANONYMOUS_LIMIT_RATE = "1/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.

On Thursday, 7 September 2023 at 15:43:28 UTC+1 Gianluca Busiello wrote:

> 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
>
> On Wednesday, 6 September 2023 at 16:51:52 UTC+1 David Trowbridge wrote:
>
>> 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
>>
>> On Wed, Sep 6, 2023 at 7:49 AM Gianluca Busiello  
>> wrote:
>>
>>> 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
>>>
>>>
>>> -- 
>>> 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
>>>  
>>> 
>>> .
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/5820ae92-92c2-4efb-9f1a-c67fd7cd3b9dn%40googlegroups.com.


Re: How to change "LIMIT RATE" settings?

2023-09-07 Thread Gianluca Busiello
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

On Wednesday, 6 September 2023 at 16:51:52 UTC+1 David Trowbridge wrote:

> 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
>
> On Wed, Sep 6, 2023 at 7:49 AM Gianluca Busiello  
> wrote:
>
>> 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
>>
>>
>> -- 
>> 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
>>  
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/dbe04f7d-29e7-4a71-b12e-1d06d86da211n%40googlegroups.com.


Re: How to change "LIMIT RATE" settings?

2023-09-06 Thread David Trowbridge
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

On Wed, Sep 6, 2023 at 7:49 AM Gianluca Busiello <
gianluca.busie...@gmail.com> wrote:

> 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
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/e1792527-035d-4804-96e9-155b83e6c9d0n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAFS3VNXyrTSPtG6meUx8Jzz4%3DyniFwWxOG6Kuo05GN7T8Nhh_Q%40mail.gmail.com.


How to change "LIMIT RATE" settings?

2023-09-06 Thread Gianluca Busiello
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


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/e1792527-035d-4804-96e9-155b83e6c9d0n%40googlegroups.com.