In Node.js, when I call the webhook API in Camunda SaaS trial, I get an empty response. Is there any suggestion how to get response instead of empty array.
@Niall can you please help me on this?
Can you explain what exactly you’re trying to return from the webhook?
I am not getting api webhook connector response like shown in this image.
Hi @LAK_PRIYA - it might be related to this issue:
@nathan.loding and @Niall Please find the uploaded image, The uploaded Image we taken from you tube.
When we are doing the same thing we can’t able get the response like (Process instance key and bpmnprocessid)
So could you please lets us know how we can achieve this?
Hi @LAK_PRIYA - did you look at the forum post I linked in the previous reply? I believe that might be your issue. Here is another thread about the same issue:
I would recommend trying these solutions, and let us know the results!
@nathan.loding, I have tried the same steps, and I am getting the response, but I am not getting a response data like (processInstancekey, BPMNProcessid, etc.)
So here how we can get that data?
@Thulasidharan and @LAK_PRIYA - I am wondering if I misunderstood the issue! Are these both true statements?
- If you use Postman, you get the expected response
- If you use the Node client, you get an empty body
I thought both received an empty body. Is it only the Node client that does?
@nathan.loding yes, both are true statements and we are using postman we are not getting expected response as shown in the below screenshot.
@LAK_PRIYA Please take a look at this docs page. You can use a response expression to add process related data to your webhook response: HTTP Webhook Connector | Camunda 8 Docs
The response format in your screenshot changed quite significantly.
@LAK_PRIYA - can you share your BPMN model? You can export it from Modeler and attach it to your reply.
New BPMN diagram (1).bpmn (34.4 KB)
@LAK_PRIYA - @sbuettner is correct, you do not have a response expression configured for the webhook:
@nathan.loding @sbuettner Thanks for your help.