You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CloudEvents received on webhook endpoint for subscriptions have Content-Type application/json, and not application/cloudevents+json as expected for CloudEvents.
CloudEventFormatter formatter = new JsonEventFormatter();
CloudEvent cloudEvent = await request.ToCloudEventAsync(formatter);
Using this code from the SDK guide gives error regarding missing specversion, as that is expected in http header when Content-Type is application/json. (might be related to structured / unstructured data?)
Steps To Reproduce
Create subscription using /events/api/v1/subscriptions endpoint
Attempt to read CloudEvent in the way described in CloudEvent guides on .NET
Error occurs
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description of the bug
CloudEvents received on webhook endpoint for subscriptions have Content-Type
application/json
, and notapplication/cloudevents+json
as expected for CloudEvents.This causes the CloudNative .NET Nuget package to not work.
Using this code from the SDK guide gives error regarding missing specversion, as that is expected in http header when Content-Type is
application/json
. (might be related to structured / unstructured data?)Steps To Reproduce
/events/api/v1/subscriptions
endpointAdditional Information
No response
The text was updated successfully, but these errors were encountered: