We can see the tls variables in the trace under X-Apigee.tls.* , however we are unable to log these header values. Is there something special that needs to be done to capture and log the headers under X-Apigee.tls.* ?
we are able to see the X-Apigee.tls.* headers in the trace but unable to capture them using getVariables to be able to log them. We are on the public cloud version 4.51
unable to capture them using getVariables to be able to log them.
What is getVariables? Can you show some code or policy configuration? And can you explain what you mean by “unable” ? What specifically are you observing?
use something other than “apigee.” as the prefix. Use something like “incoming.” or any other word.
It’s possible that you’re running into a sneaky problem in Apigee that disallows you from writing variables with a reserved prefix. If I am correct, then if you look in the Trace output for the JavaScript step, you will see an equals sign with a line through it ( ⧣ ), for each one of those context.setVariable() statements. That is a visual indication that the setVariable() call failed.
I think i figured it out.. Even though they are getting listed as header variables, we need to access them as flow variables. Something like below worked for me and i see values getting set properly:
Correct.These variables are retrieved as normal. AFAIK not all variables are available though for which apigee support can provide more information on any known issues.