https://bugzilla.wikimedia.org/show_bug.cgi?id=50356
--- Comment #3 from Krinkle <[email protected]> --- Right now the handling of any error results the following alert: > Error saving data to server: Failed request: {api.result}. The only variable we use is the result code, not the error code. And though the error code varies (badtoken, hookabort, needcaptcha) the result is always "error". Fortunately (at least) the ConfirmEdit extension, and specifically the FancyCaptcha variant (which Wikimedia uses) does provide an API and exposes the following through the EditPage/ApiEdit/ApiVisualEditor result: { "visualeditor": { "result": "error", "edit": { "captcha": { "type": "image", "mime": "image/png", "id": "626590462", "url": "//alpha.wikipedia.krinkle.dev/w/index.php?title=Special:Captcha/image&wpCaptchaId=fa4e388ad7" }, "result": "Failure" } } } So it looks like we can use this to build the UI for it. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
