We have a default fault rule attached in the target endpoint. For all other errors like 401, 400 sent by the backend service, fault rule gets triggered. However when backend is down and 503 Service Unavailable happens, it's not picking up any fault rule (proxy or target).
Is there any solution to this or is this expected behavior?
Please show your TargetEndpoint configuration?
Here is the screenshot of the target endpoint config
I just tried this here in my Apigee X organization and my fault rule is firing.
This is true in all of these cases:
I tried with and without AlwaysEnforce = true.
Are you sure that the fault rule is not firing?
Can you simplify the situation? Instead of calling a flow callout, call an AssignMessage policy that sets a single context variable?
Yes. I tried using AssignMessage policy instead of Flow callout but same outcome. It's not triggering the fault rule at all. Below is the screenshot from the trace for reference.
I suggest you contact Apigee support about this.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |