I/O error on POST request: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out error intermittently (Out of 5 requests, 2 requests pass and 3 fail)
search cancel

I/O error on POST request: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out error intermittently (Out of 5 requests, 2 requests pass and 3 fail)

book

Article ID: 277460

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

When a post request is sent from Postman to the server, https requests are going through and able to see the expected response, but when the same request is sent from an application, the team is facing a socket-timeout error intermittently (Out of 5 requests, 2 requests pass and 3 fail)

Load balancer between the Application and the performance VSE server.

Application error:

Error in Logs : I/O error on POST request: Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out

Application gets initiated from a browser.

Through Postman when sending the same requests it will work fine.
 
Only when the request is called by the application out of 5 requests, 2 requests pass.
 
Have deployed the same service on another server, the only difference between this and the other server is that, this server is a non ssl virtual service and the other is a ssl virtual service.
 

 

Environment

All supported DevTest releases.

Cause

N/A

Resolution

Adding these two properties in the local.properties file on the http machine and restarting the VSE services resolved the issue:

lisa.http.timeout.connection=0
lisa.http.timeout.socket=0