Slow down, too many requests from this IP address - Response to API user

Hi Friends
We are using discourse through rest-api. We have build a wrapper API where we need the latest posts and the reply. So first we are invoking the latest topic API and for each topic in the output we are executing posts for that topic iteratively. We are then hitting this error

Slow down, too many requests from this IP address.
Please retry again in 5 seconds.
Error code: ip_10_secs_limit.

As per some posts about this issue it was suggested to change the DISCOURSE_IP_10_SECS_LIMIT in app.yml file which we did and restarted the instance but still we face the same issue

Can someone help please?

Regards
Chittaranjan

You might need to rebuild to make that happen. At the least you’ll need to destroy and start a new container.

Hi Jay
Thanks for your response. Yes we did ./launcher rebuild app after changing the settings in app.yml. Still its not working. Please find the setting mentioned in the file


  DISCOURSE_MAX_USER_API_REQS_PER_MINUTE: 10000
  DISCOURSE_MAX_USER_API_REQS_PER_DAY: 10000
  DISCOURSE_MAX_ADMIN_API_REQS_PER_KEY_PER_MINUTE: 10000
  DISCOURSE_IP_10_SECS_LIMIT: 1000

Regards
Chitta

1 Like