Expand my Community achievements bar.

SOLVED

CloudEvent calling Webhook successfully, but Body is empty

Avatar

Level 2

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:

 

Screenshot_2022-04-13_at_11_31_29.png

 

Will be very thanksfull for any help

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

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

Avatar

Level 2

Thats it! Thanks a lot.

I also noticed that in console.adobe.io is correct payload shown.