```
2015-04-29 21:46:33 mw1146 enwiki exception INFO: [eb969570] /w/api.php?titles=File%3AJere_Beasley.JPG&iiprop=timestamp%7Cuser%7Ccommen
t%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiex
tmetadatamultilang=1&format=json&action=query&redirects=true&uselang=en UnexpectedValueException from line 957 of /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php: Unknown type 'lang'
#0 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#1 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#2 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#3 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#4 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#5 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#6 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#7 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(860): ApiResult::applyTransformations()
#8 /srv/mediawiki/php-1.26wmf3/includes/api/ApiResult.php(244): ApiResult::applyTransformations()
#9 /srv/mediawiki/php-1.26wmf3/includes/api/ApiFormatJson.php(97): ApiResult->getResultData()
#10 /srv/mediawiki/php-1.26wmf3/includes/api/ApiMain.php(1250): ApiFormatJson->execute()
#11 /srv/mediawiki/php-1.26wmf3/includes/api/ApiMain.php(1108): ApiMain->printResult()
#12 /srv/mediawiki/php-1.26wmf3/includes/api/ApiMain.php(436): ApiMain->executeAction()
#13 /srv/mediawiki/php-1.26wmf3/includes/api/ApiMain.php(409): ApiMain->executeActionWithErrorHandling()
#14 /srv/mediawiki/php-1.26wmf3/api.php(90): ApiMain->execute()
#15 /srv/mediawiki/w/api.php(3): include()
#16 {main} {"private":false}
```
[14:59:10] <legoktm> bawolff: is it possible for image metadata to have a "_type" key somewhere when the API is returning it?
[14:59:26] <legoktm> bawolff: specifically https://en.wikipedia.org/w/api.php?titles=File%3AJere_Beasley.JPG&iiprop=timestamp|user|comment|url|size|sha1|metadata|mime|mediatype|extmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=jsonfm&action=query&redirects=true&uselang=en
[14:59:41] <bawolff> yes
[14:59:47] <bawolff> in fact most should
[14:59:56] <legoktm> ahhhhhh
[15:00:06] <legoktm> well shit
[15:00:16] <bawolff> Did the api decide to reserve keys named "_type" ?
[15:00:18] <legoktm> yes
[15:00:24] <legoktm> everything that starts with _
[15:00:33] <bawolff> uh-oh
[15:00:40] <legoktm> ApiResult::META_TYPE = '_type';
[15:01:26] <bawolff> internally in the img_metadata blob, we use _type in order to say if an array is an ordered list of values, an unordered list, or a multiple language alternative thingy
[15:01:51] <bawolff> its then used to control if the output is a numbered list, a bullet list, or the language thingy
[15:02:21] <legoktm> ugh
[15:03:39] <legoktm> bawolff: so...if we renamed ApiResult::META_TYPE = '_type' to '_meta_type', would that make it less bad?
[15:04:29] <bawolff> yes
[15:04:47] <bawolff> _type should be the only underscore starting thing that the image metadata uses