While testing multiple renderers in the mwoffliner we faced a rate-limit error of Action API (action=visualeditor) though outgoing requests were sequential (not concurrent). This error has appeared to all clients since Thursday 26th.
Steps to replicate the issue:
- Go to this endpoint https://en.wikipedia.org/w/api.php?action=visualeditor&mobileformat=html&format=json&paction=parse&formatversion=2&page=MediaWiki%3ASidebar
What happens?:
Got response:
{ "error": { "code": "parsoid-stash-rate-limit-error", "info": "Stashing failed because rate limit was exceeded. Please try again later.", "docref": "See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes." }, "servedby": "mw1491" }
What should have happened instead?:
Should return valid JSON with HTML5 for the Mediawiki:Sidebar page from the Parsoid service. Actually, all articles in MediaWiki namespace are affected, check MediaWiki:Mainpage or MediaWiki:Sitenotice. Additional info in GitHub ticket - https://github.com/openzim/mwoffliner/issues/1937
Also, I have a few related questions:
- Is it possible to unlock Mediawiki namespace endpoints?
- Is it possible to whitelist Github IPs so mwoffliner won't be affected by this error?
- Are there any logs about the root cause of this issue?
- Any suggestions on how to prevent this kind of error in the future? There is no Retry-After header in the response