Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka consumer tries to parse JSON CloudEvents twice #1246

Open
rngcntr opened this issue Feb 17, 2025 · 0 comments · May be fixed by #1247
Open

Kafka consumer tries to parse JSON CloudEvents twice #1246

rngcntr opened this issue Feb 17, 2025 · 0 comments · May be fixed by #1247

Comments

@rngcntr
Copy link
Collaborator

rngcntr commented Feb 17, 2025

Whenever a Kafka consumer receives Kafka message that contains a header indicating a CloudEvent (e.g. content-type: application/cloudevents+json), it is parsed to JSON by the ToCloudEvent extension from the CloudNative.CloudEvents.Kafka package already. However, Motor.NET expects the result to be a CloudEvent<byte[]> because it intends to defer the parsing until later.

rngcntr added a commit that referenced this issue Feb 17, 2025
@rngcntr rngcntr linked a pull request Feb 17, 2025 that will close this issue
rngcntr added a commit that referenced this issue Feb 17, 2025
rngcntr added a commit that referenced this issue Feb 17, 2025
rngcntr added a commit that referenced this issue Feb 18, 2025
rngcntr added a commit that referenced this issue Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant