hi @oseymen,
I tried to handle 3 types of error, which are validated upfront upon user request payload, validated upon the backend payload response and apigee internal server (policy) error. However i'm not able to reach the condition whereby the error suppose to go into defaultfaultrule expression as below:
eg : invalid access token error
eg of raise fault policy
raisefault-rf-errorresponse.jpg
eg of java script
java-script-js-setapigeeerror.jpg
Perhaps you can assist me to ease my troubleshooting on this.
Thanks.
Couple of points:
So I'd recommend you only put a RaiseFault policy under DefaultFaultRule, set <AlwaysEnforce> to true and use AssignMessage policies within FaultRules.
Check this post out for more information: https://community.apigee.com/content/kbentry/23724/an-error-handling-pattern-for-apigee-proxies.html
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |