I’ve followed the example in the Camunda Academy example but I am getting a server 500 error as soon as I add the Webhook Response expression e.g. {message: “Hello”}. Without the expression I get a successful server response but obviously no body as nothing is configured.
I am running the Camunda Cloud 30 day evaluation.
How do I trouble shoot this? Are there logs viewable?
The inbound.responseExpression is the issue. When I changed it in the XML editor to inbound.ResponseBodyExpression it works. The downside is that the modeler does not recognise this and does not display the Response expression even though it exists in the XML. If you retype it in the modeler then it reverts back to the inbound.responseExpression and then fails to work until you re-edit the XML.
Camunda people this is a bug you should prioritise to fix. Getting a REST API response is a basic piece of functionality that needs to work effortlessly as per the tutorial and instructions.
Update… the easiest fix (as per the referenced Topic above) is to edit the XML and change the TemplateVersion to 10 (mine was 11). This then displays the Response expression correcly too in the Modeler.
Hi @Alain_Jaques - thanks for the feedback; and I agree! It will be resolved in the 8.6 release, but it’s difficult to work with until then. I’ve given this feedback to the product teams and they are already working on a way to ensure this doesn’t happen in future release cycles.
This is the complete stack trace from connector runtime btw. I am seeing this in connector v8.6.8
2025-03-10 12:34:15 java.lang.NullPointerException: null
2025-03-10 12:34:15 at java.base/java.util.Objects.requireNonNull(Unknown Source)
2025-03-10 12:34:15 at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.escapeValue(InboundWebhookRestController.java:88)
2025-03-10 12:34:15 at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.toResponseEntity(InboundWebhookRestController.java:84)
2025-03-10 12:34:15 at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.buildSuccessfulResponse(InboundWebhookRestController.java:188)
2025-03-10 12:34:15 at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.buildResponse(InboundWebhookRestController.java:157)
2025-03-10 12:34:15 at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.processWebhook(InboundWebhookRestController.java:134)
2025-03-10 12:34:15 at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.lambda$inbound$0(InboundWebhookRestController.java:112)
2025-03-10 12:34:15 at java.base/java.util.Optional.map(Unknown Source)
2025-03-10 12:34:15 at io.camunda.connector.runtime.inbound.webhook.InboundWebhookRestController.inbound(InboundWebhookRestController.java:107)
@deepakkapoor23 - please open a new thread for that issue, please tag me in it. Please also include details on how you’ve configured the connector (for instance, a screenshot of the details pane in Modeler).
Its the same issue discussed on this post and here. Changing the expression to inbound.responseBodyExpression resolves it but I am still seeing it on v8.6.8. I thought it was fixed in release 8.6?