RESPONSE : {'errors': {'username': 'Too many attempts! You must wait xxx seconds before trying again.'}}

In a Metabase API integration when the user account was disabled for sometime the API failed due to auth failure. Now when the account is activated again due to the repeated failure the API is rejecting the user.

Is there a way to reset the wait counter? Is this setup in the metabase database or is stored somewhere else temporarily?

Hi @nishu
You'll have to restart Metabase.
You should probably implement some code, so you back-off, when there's a failure instead of just continuing hammering the API service. And cache the credentials, so it doesn't need to authenticate every request:
https://www.metabase.com/learn/administration/metabase-api#authenticate-your-requests-with-a-session-token

1 Like

Very helpful!
Thanks a lot @flamber