See https://bugzilla.wikimedia.org/show_bug.cgi?id=46535 . Everyone once in a while you'll get an apierror when trying to create a new page:
File "C:\pywikibot\core\pywikibot\page.py", line 2523, in editEntity baserevid=baserevid, **kwargs) File "C:\pywikibot\core\pywikibot\site.py", line 721, in callee return fn(self, *args, **kwargs) File "C:\pywikibot\core\pywikibot\site.py", line 3725, in editEntity data = req.submit() File "C:\pywikibot\core\pywikibot\data\api.py", line 401, in submit raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: failed-save: Could not create a new page.
It already exists.
<class 'pywikibot.data.api.APIError'>
Error should be caught somewhere in the lower layers and it should be retried (just like with connection problems). It should respect maxretries so it doesn't get stuck in a loop
Version: core-(2.0)
Severity: critical
URL: https://bugzilla.wikimedia.org/show_bug.cgi?id=46535
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=46535