on 2022 Mar 25 4:21 PM
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.
Request clarification before answering.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.