From the documentation and in the forum I understood that request.content should be available even if Apigee enters an error state (i.e. it should be accessible from within a Fault Rule), but when I try to access it, I get nothing back. I am able however to access request.path and request.verb.
Here's the scenario I have in my application, which is an interaction between two systems (and consequently two proxies). Let's call them A and B:
There is a single message that contains the details required for allocation & deallocation of the resource in System A, and operation on the resource by System B. So I want to just send request.content in my SC payload, but when in the debug interface I see the request.content as empty.
I asked Gemini about this, and it told me the request.content would not be available if it's been altered by another flow/step before the error takes place, but I don't think that is the case in my proxy.
So my questions are:
I'll describe here how I got around this issue. There might be unforeseen consequences to this approach, so this is not a recommendation for people with similar issues, and I'd be happy to get feedback:
Proxy B is still considered as failed after this, which I think is appropriate in my case. But since the fallback was triggered I can also envision changing this via an AM policy to return something in the 200's.
Hey @Ian22, thank you for sharing your solution and contributing to the community, we appreciate it!
If anyone has additional feedback or alternative solutions, please feel free to share.