Connection Timed Out: Rest API Call in V4

0
Hi All,   Request you to provide some idea or a solution for our problem. We are getting connection reset exception frequently(not all times) when connecting to an API through RST API call. Our application is hosted in v4 & modeler is 7.23.19.  There is no timeout set in rest call & project setting is used. Everything was fine when we where in v3 node & 7.23.5 modeler. Kindly help. Below is the major error from log. We are adding our request in a queue & thread count in queue is 3. But queue will never be full because hardly 20-30 requests are placed in a day and most of the time queue will be empty or maximum 1.   In the stack trace we could see “java.net.SocketException: Connection reset” “at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:57) Caused by: java.security.PrivilegedActionException: javax.net.ssl.SSLException: Connection reset”  and “Connection reset     at sun.security.ssl.Alert.createSSLException(Alert.java:127)”   Regards, Hemanth
asked
3 answers
0

Hi Hemanth Babu S

Can you confirm that your application running locally.

If yes this happens, bcz when your app hits Call REST activity make sure the internet connection has to be stable.

Check this after disconnecting your internet in local. You will get the same error.

Hop this helps!

answered
0

Could someone help us please

answered
0

Hi Hemanth,

 

Maybe you solved it already, but we encountered a similar problem a while ago. You can look into the runtime setting http.client.CleanupAfterSeconds. In Mx8 you could sometimes get the connection reset issue. Mendix created a permanent fix in 8.18.1.

Mendix described it like this:

Hope it helps.

 

Cheers,

Daan

answered