Service Virtualization

 View Only

Issue with Live Invocation to a service that requires Basic Authorization

  • 1.  Issue with Live Invocation to a service that requires Basic Authorization

    Broadcom Employee
    Posted Jan 26, 2022 03:19 PM

    Issue/Introduction

    We ran into an issue with Live invocation to a service that requires Basic Auth. We have set the "Do not set the host header parameter received from the client" but still get the below error.

    ============================================================================

    | java.lang.IllegalStateException: The live system did not send a response.

    ============================================================================

    | Step:        Virtual HTTPS Live Invocation 443

    ----------------------------------------------------------------------------

    | Message:     The live system did not send a response.

    ----------------------------------------------------------------------------

    | Trapped Exception: The live system did not send a response.

    | Trapped Message:   java.lang.IllegalStateException: The live system did not send a response.

    ----------------------------------------------------------------------------

    STACK TRACE

    java.lang.IllegalStateException: The live system did not send a response.

                    at com.itko.lisa.vse.stateful.protocol.http.HttpLiveInvocationStep.execute(HttpLiveInvocationStep.java:480)

                    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:995)

                    at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)

                    at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)

                    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)

                    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)

                    at com.itko.lisa.coordinator.Instance.run(Instance.java:208)

    ============================================================================

    The service was created from RRpairs.


    Cause

    When you try to hit the live endpoint using a test case its working fine. But, When you set VS to LIVE mode and hit the service , we are getting  : 

    | Trapped Exception: The live system did not send a response.

    | Trapped Message:   java.lang.IllegalStateException: The live system did not send a response.

     

    Noticed that the VSI META DATA did not have any header properties. so the authorization was not being sent.  


    Environment

    Release : 10.6

    Component : DevTest Virtual Service


    Resolution

    Did a new recording using the Test Case /Soap UI test. We were able to capture the headers in the META DATA

    Authorization: BasicXXXX

    Content-Type: application/json

     

    Deployed the newly created service and changed execution mode to LIVE and we got a valid response