Request times out but http logs show response (org.apache.http.client.ClientProtocolException)
Certain requests I make will timeout with the error below in the Error logs
2020-11-12 09:53:08,983 ERROR [WsdlSubmit] Exception in request: org.apache.http.client.ClientProtocolException
2020-11-12 09:53:08,983 ERROR [errorlog] org.apache.http.client.ClientProtocolException
org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:839)
The HTTP log however, shows the correct response. So clearly the call went through successfully. This isn't very helpful though as each time I run a test case, some test steps timeout and the assertions aren't working correctly.
Any ideas as to why this is happening? Anyone else have a similar issue to this?
More information on what I'm doing:
- Request is already Authenticating Preemptively
- Request has an assertion to check for Valid HTTP Status codes
- I am using SoapUI 5.6.0 Open Source
- Testing the same request in Postman doesn't have this issue
- Other the same API with different request payloads work correctly. It appears to only happen when I'm intentionally using incorrect values
The issue was fixed after handling certain negative scenarios. The third-party service we're using weren't handling these properly.
Not sure why SoapUI had this issue and not Postman, but in an strange way it was good it was discovered.