Error
Connecting to Wikidata using Pywikibot fails with maxlag retry error when servers are under heavy load.
import pywikibot
site = pywikibot.Site('wikidata')Connecting to other platforms like Commons or Wikipedia works correctly. User owns a bot account.
CRITICAL: Maximum retries attempted due to maxlag without success.
Impact
- Possibly the server connection timeout threshold is too low.
- Impossible to amend Wikidata using Pywikbot.
- Using Pywikibot for Wikidata is temporarily impossible.
Notes
Manually editing Wikidata with the GUI works without problem.
Loging in to other platforms like Commons or Wikipedia works correctly.
This problem might be due to a too strict load level restriction for users owning a bot flag.
Maxlag can be monitored through https://grafana.wikimedia.org/d/TUJ0V-0Zk/wikidata-alerts.



