Given the file: [[ https://commons.wikimedia.org/wiki/File:%D0%9C%D0%B8%D1%85%D0%B0%D0%B8%D0%BB_%D0%9A%D0%B0%D1%87%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_%D0%B8_%D1%81%D0%BE%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F_%D0%B3%D0%B0%D0%BB%D0%B8%D1%86%D0%BA%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B0%D1%8F_%D0%BB%D0%B8%D1%82%D0%B5%D1%80%D0%B0%D1%82%D1%83%D1%80%D0%B0_%D0%A7%D0%B0%D1%81%D1%82%D1%8C_1_1876.djvu | File:Михаил Качковский и современная галицко-русская литература Часть 1 1876.djvu ]]
Passing it to the [[ https://commons.wikimedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=imageinfo&titles=File%3A%D0%9C%D0%B8%D1%85%D0%B0%D0%B8%D0%BB_%D0%9A%D0%B0%D1%87%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_%D0%B8_%D1%81%D0%BE%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%BD%D0%B0%D1%8F_%D0%B3%D0%B0%D0%BB%D0%B8%D1%86%D0%BA%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B0%D1%8F_%D0%BB%D0%B8%D1%82%D0%B5%D1%80%D0%B0%D1%82%D1%83%D1%80%D0%B0_%D0%A7%D0%B0%D1%81%D1%82%D1%8C_1_1876.djvu&formatversion=2&iiprop=mediatype&iiurlwidth=600 | 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.