We currently notice in our logs that sometimes our ExternalTask can not be completed.
The following error is thrown:
TASK/CLIENT-01010 Exception while completing the external task: Connection could not be established with message: "Cannot construct instance of `org.camunda.bpm.client.impl.EngineRestExceptionDto` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (502)
at [Source: (org.apache.http.conn.EofSensorInputStream); line: 1, column: 1]"
at org.camunda.bpm.client.topic.impl.TopicSubscriptionManager.handleExternalTask(TopicSubscriptionManager.java:155)
at org.camunda.bpm.client.topic.impl.TopicSubscriptionManager.lambda$acquire$0(TopicSubscriptionManager.java:109)
at java.base/java.util.Arrays$ArrayList.forEach(Unknown Source)
at org.camunda.bpm.client.topic.impl.TopicSubscriptionManager.acquire(TopicSubscriptionManager.java:104)
at org.camunda.bpm.client.topic.impl.TopicSubscriptionManager.run(TopicSubscriptionManager.java:88)
at java.base/java.lang.Thread.run(Unknown Source)
We have just upgraded to Camunda platform 7.18. It seems that the 502 HTTP error cannot be mapped correctly to the EngineRestExceptionDto.
Do you have any suggestions on how we can fix this issue? Our External Tasks are retried, but retrying before “complete” is actually unfavorable.
Thank you for any help!