Identified in T228293#6108183
This API module should probaly not result in an exception bubbling all the way up to the user and should return an nice API result (similar to other APIS)
{
"error": {
"code": "unresolved-redirect",
"info": "The given entity ID refers to a redirect, which is not supported in this context.",
"messages": [
{
"name": "wikibase-api-unresolved-redirect",
"parameters": [],
"html": {
"*": "The given entity ID refers to a redirect, which is not supported in this context."
}
}
],
"*": "See https://test.wikidata.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": "mw1344"
}