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 exceededAdditional 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.
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:
Comments
Article is closed for comments.