Lucas_Werkmeister_WMDE added a subscriber: Pintoch. Lucas_Werkmeister_WMDE added a comment.
While we should of course handle this without crashing, it’s also clearly not a valid request: the code that is making these API requests is also broken. From GitHub search, `wd-recon-lang` seems to come from OpenRefine, especially the preview-renderer <https://github.com/OpenRefine/OpenRefine/blob/2f29f502bea20979d703df6b9d8a3e937e7e45b8/extensions/wikibase/module/scripts/preview-renderer.js#L333>: var params = { action: 'wbformatvalue', generate: 'text/html', datavalue: jsonValue, options: '{"lang":"'+$.i18n('core-recon/wd-recon-lang')+'"}', format: 'json' }; I’m guessing `$.i18n()` falls back to the message key itself when the message isn’t defined for whatever reason, and that’s how we get these requests. CCing @Pintoch just FYI: probably better to fall back to `en` in that case. TASK DETAIL https://phabricator.wikimedia.org/T330859 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Pintoch, Michael, I, Aklapper, Lucas_Werkmeister_WMDE, jnuche, Astuthiodit_1, karapayneWMDE, Invadibot, Func, maantietaja, ItamarWMDE, Akuckartz, Winston_Sung, darthmon_wmde, Rosalie_WMDE, VulpesVulpes825, Nandana, AbdellahSADIQUI, Lahi, Willy1018, Gq86, Biblbroks, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Taiwania_Justo, Scott_WUaS, LNDDYL, Verdy_p, Wikidata-bugs, aude, ssastry, Jdforrester-WMF, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
