Current Setup
- APIGEE private cloud Version 4.16.01.04
We found out that we have some problems with the Message Logging Policy which throws Broken Pipe Exception. For some reason it causes slowness to our servers up to instance that it returned http 502 bad gateway. Please note that even on higher version of APIGEE we are experiencing the same behavior.
Now we are trying to find alternative ways on how to do message logging (we will be fine for now if message will be sent to MP system.log). We already tried using JavaScript console.log but we are getting the below error.
{ "fault": { "faultstring": "Execution of JavaScript.SetRequestMessageLog failed with error: Javascript runtime error: \"ReferenceError: \"console\" is not defined. (JavaScript_SetRequestMessageLog_js#90). at line 90 \"", "detail": { "errorcode": "steps.javascript.ScriptExecutionFailed" } } }
tried these variations but still same error that console is not defined.
console.log("%s",context.getVariable("var.message"));
console.log(context.getVariable("var.message"));