Clarification - java.net.SocketException – Connection reset - Mendix Forum

Clarification - java.net.SocketException – Connection reset

2

 

https://docs.mendix.com/refguide/call-rest-action/#91-javanetsocketexception--connection-reset 

 

This error is occurs when your app’s infrastructure closes the connection because it is inactive. Your app client does not know this and gets this error when it makes a new request.

There are two ways to resolve this:

  1. Alter the value of the http.client.CleanupAfterSeconds runtime setting to be less than the connection timeout. This will ensure that the your app client will create a new HTTP client for the request.

  2. Handle the error in your microflow and retry a number of times before returning the error. Your flow might look similar to the one below.

asked
0 answers