Why are users seeing 'limit exceeded' errors?

Applies to: Mattermost v10.5 and later
Symptoms: Users receiving "limit exceeded" errors when connecting to Mattermost

 

Problem

Users are intermittently reporting getting "limit exceeded" errors when using Mattermost or connecting to their Mattermost instance.

Symptoms

Users experiencing this issue will see:

limit exceeded

Additional symptoms:

  • Intermittent connection failures to Mattermost
  • API requests are being blocked unexpectedly
  • Users uare nable to send messages or perform actions sporadically

 

Solution

To resolve this issue, you need to disable rate limiting in your Mattermost configuration. This can be done in three ways:

Option 1: Configuration File Method

Edit your config.json file and set:

"RateLimitSettings": {
    "Enable": false
}

 

Option 2: Environment Variable Method

Set the following environment variable:

MM_RATELIMITSETTINGS_ENABLE=false

 

Option 3: System Console Method

Navigate to System Console → Environment → Rate Limiting and set Enable Rate Limiting to False.

Screenshot 2025-06-26 at 15.58.23.png
 

After making any of these changes, restart your Mattermost server for the configuration to take effect.

Important: Rate limiting in Mattermost isn't recommended for production setups as it can block every API endpoint, causing intermittent connection issues. However, it might be sensible to investigate possible reasons for the increased API requests.

Additional Resources

For more information, see:

Official Mattermost Rate Limiting Documentation

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.