How to handle HttpHostConnectException?

Hi,

I need to handle an error scenario where in case a docker container is down and Camunda Connector is unable to access it, I can catch the HttpHostConnectException error and display a meaningful message. Currently, the flow is breaking with the exception:

org.camunda.connect.ConnectorRequestException: HTCL-02007 Unable to execute HTTP request

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.jboss.resteasy.spi.UnhandledException: org.camunda.connect.ConnectorRequestException: HTCL-02007 Unable to execute HTTP request
org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)

connectjar.org.apache.http.conn.HttpHostConnectException: Connect to core-services:9100 [core-services/172.28.0.7] failed: Connection refused (Connection refused)

Is there a way?

@Ankita-Saxena1 you can configure retry with repeat cycle(eg. R3/PT10M - retry 3 times with 10 minutes interval between each retries). Once retry count was depleted, for technical errors, you can create an incident.

Refer this: https://docs.camunda.org/manual/7.9/user-guide/process-engine/incidents/#incident-types