Skip to content

MaximumRetriesExceeded

Waldir Pimenta edited this page Nov 16, 2013 · 3 revisions

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)

Superclass: MwClientError


This page was originally imported from the old mwclient wiki at SourceForge. The imported version was dated from 14:07, 14 November 2011, and its only editor was Derrickcoetzee (@dcoetzee).