Hello,
I'm playing around with CloudEvents and have the following issue:
I configured Eventmetadata and then fire an event like folowing:
function createCloudEvent(providerId, eventCode, payload) {
let cloudevent = new CloudEvent({
source: 'urn:uuid:' + providerId,
type: eventCode,
datacontenttype: "application/json",
data: {
hello: 'world'
},
id: uuid.v4()
});
return cloudevent
}
As a result, event is fired successfully and webhook got triggered.
But Body of it is always empty:
Will be very thanksfull for any help
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @nuzil,
I noticed that you are using the https://io-webhook.herokuapp.com/ as the webhook server. There is a known bug in this server where it's only able to display payloads when the content type is application/json.
If you created this integration using developer console, you should be able to view debug traces of the events flowing.
Alternatively, you can use https://webhook.site as the webhook server, but you'll have to take care of challenge deliveries manually then.
Hope this helps!
Thanks, Shikhar
Hi @nuzil,
I noticed that you are using the https://io-webhook.herokuapp.com/ as the webhook server. There is a known bug in this server where it's only able to display payloads when the content type is application/json.
If you created this integration using developer console, you should be able to view debug traces of the events flowing.
Alternatively, you can use https://webhook.site as the webhook server, but you'll have to take care of challenge deliveries manually then.
Hope this helps!
Thanks, Shikhar
Thats it! Thanks a lot.
I also noticed that in console.adobe.io is correct payload shown.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies