Hey all,
Running Matrix 5.1.2.1
Hitting the JS API getChildren command returns an array of objects, and, in some cases, an error object too. The problem is, that the error object breaks the formatting, so:
{"error":"Malformed UTF-8 characters, possibly incorrectly encoded","errorCode":"internalError"}[{"..."},{"..."}]
^ is missing the semicolon after the error object, or the response array is not wrapped in an object value.
This would be better:
{"error":"Malformed UTF-8 characters, possibly incorrectly encoded","errorCode":"internalError","response":[{"..."},{"..."}]}
Unfortunately this error can't be caught or handled at all, as the response is not correctly formatted javascript. Is there a patch we can apply to get the response correct?