java.net.SocketTimeoutException: connect timed out

I am getting below error when call a Rest API:

{
  "PVT_GET_CASES": {
    "records": [
      {
        "primary_key": "PVDIY19062302474162",
        "error": {
          "code": "IGW_SERVER_503",
          "message": "Some error occurred when executing IGW api",
          "response": "java.net.SocketTimeoutException: connect timed out",
          "process_status": "FAILURE",
          "response_type": "E",
          "detailed_message": "I/O error on POST request for http://IP:PORT/middleware-apis/getCases: Connect to kotak-ca-company:8098 failed: connect timed out; nested exception is org.apache.http.conn.ConnectTimeoutException: Connect to kotak-ca-company:8098 [kotak-ca-company] failed: connect timed out"
        }
      }
    ],
    "responseHandledBy": "MOBILE APP",
    "isSuccessRuleValidated": true
  }
}
3 Likes

User faces this error when the request is unable to reach the JAR hosted behind the Rest API.
This generally happens because the JAR has stopped running and should work fine once the JAR is restarted again.

4 Likes