Layer 7 API Management

Expand all | Collapse all

Problem access response from Route via HTTP assertion

  • 1.  Problem access response from Route via HTTP assertion

    Posted 12 days ago
    Hi,

    We are using V9.4, and I am using a Route via HTTP assertion.  I set the name of a var, myResponse, as the "Destination" for the assertion.

    However, when I do an Add Audit and try to output myResponse.mainpart, it is coming up empty.

    Can anyone tell me what I need to access the response (myResponse)?

    Thanks,
    Jim


  • 2.  RE: Problem access response from Route via HTTP assertion

    Posted 12 days ago
    Dear Jim,
    Assume that you refer to the var as ${myResponse.mainpart}, and the audit detail assertion is after the route assertion, and there is no error of route assertion, then the backend server may just return a response without payload.

    Regards,
    Mark


  • 3.  RE: Problem access response from Route via HTTP assertion

    Posted 12 days ago
    Hi,

    I was able to get the reasonCode, and it is a 302 (a redirect).  So where (which var) would let me see response and the location,e tc. for the redirect?

    FYI I did have the "follow redirects" checkbox in the Route assertion checked.

    Jim


  • 4.  RE: Problem access response from Route via HTTP assertion

    Posted 12 days ago
    Sorry I forgot to say that I did try ${myResponse.mainpart} and that returned empty string or nothing.


  • 5.  RE: Problem access response from Route via HTTP assertion

    Posted 12 days ago
    Do you see anything in the ssg log?

    /opt/SecureSpan/Gateway/node/default/var/logs/ssg_0_0.log


    Regards,
    Mark