Clone this wiki locally
MaximumRetriesExceeded is raised when an API call fails and is repeatedly retried until all retries are exhausted. API calls are only retried if mwclient believes waiting and then retrying is likely to resolve the issue. Some issues that can cause this include:
- Repeated HTTP errors
- Repeated internal database connection errors
- A server with long-term replication lag
You can determine which issue is occurring by querying the API directly using your web browser. If long-term replication lag is the problem, you can workaround this by increasing the max_lag parameter to Site.__init__, although this will cause you to receive stale data.
The number of retries before raising this error is controlled by the max_retries parameter to Site.__init__. (default 25)