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
Is there a way to successfully parse an event like this or is this a bug in the SDK? The spec does not require a content-type header for structured events as I can see.
The text was updated successfully, but these errors were encountered:
Hello,
I am not sure if this is an actual bug or if I miss something in the SDK but in my understanding this should work.
I am receiving a cloud event without any headers from a kafka instance:
The problem is that the SDK does not set a format for this message because the format is extracted from the headers here:
https://github.com/cloudevents/sdk-go/blob/main/protocol/kafka_sarama/v2/message.go#L47
This causes an error in the
ToEvent()
function here:https://github.com/cloudevents/sdk-go/blob/main/v2/binding/to_event.go#L32
Is there a way to successfully parse an event like this or is this a bug in the SDK? The spec does not require a
content-type
header for structured events as I can see.The text was updated successfully, but these errors were encountered: