Issue with Live Invocation to a service that requires Basic Authorization
search cancel

Issue with Live Invocation to a service that requires Basic Authorization

book

Article ID: 233143

calendar_today

Updated On:

Products

Service Virtualization

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.

Environment

All supported DevTest releases and platforms.

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.  

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