Layer7 API Management

  • 1.  Get error message from HTTP routing assertion

    Posted Jan 16, 2019 07:34 AM

    Hi, while routing http message we get an error that logs as e.g. "connection to http://*** timed out". My question is: can we access this message from the policy? Whenever routing goes wrong we are using "Return Template Response to Requestor" to return "500" message back to the client but the only debugging information we can return is httpRouting.reasonCode - which is not much. Can I access more debugging information in the policy?



  • 2.  Re: Get error message from HTTP routing assertion
    Best Answer

    Broadcom Employee
    Posted Jan 16, 2019 02:06 PM

    Good morning,

     

    If you add the HTTP Routing assertion into a At Least One branch and add a set context variable right below to set the value of ${audit.details.last.fullText} so that you are grabbing the last audit message created. This new context variable can then be used however you like.

     

    Sincerely,

     

    Stephen Hughes

    Broadcom Support



  • 3.  Re: Get error message from HTTP routing assertion

    Posted Jan 17, 2019 03:12 AM

    Thank you Stephen, that's what I was missing. I have tried ${audit.details.${audit.details.length}.fullText} but of course it didn't work