Hi ,
I have created a proxy with target endpoint . It Calls another proxy using servicecallout policy (Inline response message) in ProxyEndpoint under postflow in response, response from this service. Using this policy I am calling my other proxy. it stores my cache data into Apigee BaaS using cache_key and proxy-response.
Sometimes I am able to call my backend proxy using this, sometimes I am getting timed out error and also I unable to see the response in my final output. I am getting blank data.
I used javascript policy to forward my response to web but still I am getting blank response
I tried following ways to forward my response
context.proxyResponse.content = context.getVariable('response');
context.proxyResponse.content = context.getVariable('response.content');
Kindly advise me on how to call my backend proxy to store cache data in BaaS
If not their is any other way to store my cache data in BaaS
At the same time if I got any error response from target server I need to pull cached data from it and passed to the client.