Open mvsleak opened 3 years ago
I faced the same problem.I tried REDASH_RATELIMIT_ENABLED=false
in /opt/redash/env
. It worked as expected.
According to the source code, the environment variable to be set seems to be REDASH_RATELIMIT_ENABLED
.
@shibacow is correct. The environment variable is called REDASH_RATELIMIT_ENABLED
. This is then mapped to a Python constant called RATELIMIT_ENABLED
. If you set an environment variable without REDASH_
appended to it, I would not expect this to have any effect.
@mvsleak Can you can confirm?
Would appreciate a review on https://github.com/getredash/redash-toolbelt/pull/81 from either of you 👍
I confirmed using REDASH_RATELIMIT_ENABLED
fixes the issue. Thanks a lot!
Under the hood, this is the full error message including the exception:
I can see this kind of error was expected and this comment shows how this can be fixed: https://github.com/getredash/redash-toolbelt/pull/23#discussion_r714044129
However, even after setting
RATELIMIT_ENABLED=False
in redash (in/opt/redash/env
for AWS AMI) I am still getting rate limited with the same message. What did change, however, is how many calls succeeded before getting rate limited. Before disablingRATELIMIT_ENABLED
rate limit would kick in after creating 50 users, and after, it would start after creating 100 users.