cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

WebHook created via CAP for message consumption fails with pending handshake

jeffrey_joseph
Advisor
Advisor
0 Kudos
933

Hi,

We followed the CAP documentation/blogs(https://blogs.sap.com/2020/03/03/sap-cloud-application-programming-model-and-enterprise-messaging-3-receive-message/) to create a CAP node js app that connects to the event mesh instance in our subaccount(default plan).

Sending event/publishing messages seems to be working fine as we can see the message count increases in the queue.

To consume messages we added the following code in the receiver.js:

const messaging = await cds.connect.to("messaging");

messaging.on(topic, (msg) =>

{

console.debug("Event Name: " + eventname + "\nMessage: " + JSON.stringify(msg));

});

We also made the required changes in the package.json.

When we deployed this in CF, the cap app automatically creates the queues for publishing/consumption based on the topic and it also creates a WebHook associated with the consumption queue/topic.

The webhook is in the paused state with Handshake Status set as failed. Even initiating a manual handshake does not work. If we create the webhook manually by setting the Handshake required to false we are able to create a webhook.

Thank you.

Accepted Solutions (0)

Answers (0)