We have an issue and we do not know if it's by design. When we log apim.getError() in an API's catch and we can check "policyTitle" indicating the policy causing an error as following:
"Message": {
"name": "JavaScriptError",
"message": "Internal Error",
"status": {
"code": 500,
"reason": "Internal Server Error"
},
"policyTitle": "Check framework validation code"
}
But when we migrated the catch to the error global policy, now it's null.
"Message": {
"name": "JavaScriptError",
"message": "Internal Error",
"status": {
"code": 500,
"reason": "Internal Server Error"
},
"policyTitle": null
}
How can I get the same behavior in the error global policy catch?
------------------------------
Mohamed Alkhaligy
------------------------------