The following API request to the /page/media endpoint fails with a weird error that is not so self explanatory.
https://en.wikipedia.org/api/rest_v1/page/media/A._P._J._Abdul_Kalam
{ "type": "https://mediawiki.org/wiki/HyperSwitch/errors/internal_error", "title": "TypeError", "method": "GET", "detail": "Cannot read property '0' of undefined", "uri": "/en.wikipedia.org/v1/page/media/A._P._J._Abdul_Kalam/" }
BTW, the link for the type property seems to be pretty odd and moreover it seems broken too.