Given the file: File:Михаил Качковский и современная галицко-русская литература Часть 1 1876.djvu
Passing it to the imageinfo page prop api generates the error:
{ "error": { "code": "urlparamnormal", "info": "Could not normalize image parameters for Михаил_Качковский_и_современная_галицко-русская_литература_Часть_1_1876.djvu.", "docref": "See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes." }, "servedby": "mw1284" }
I poked in logstash but I don't see anything related in the logs. A quick look over the related code in ApiQueryImageInfo suggests this can be caused by individual files having bad metadata extracted by their handlers? If that is true, then I think the main problem is that a file with bad metadata can fatal the whole request, rather than returning an error for that particular page. The error is additionally not structured in a way that a program could easily adjust it's request and re-send.