Microsoft.Azure.EventGrid - Can not send CloudEvent using EventGridClient
See original GitHub issueWe have a EventGrid Topic setup with CloudEvent as input schema. When trying to send a CloudEvent using EventGridClient, we get the below error.
Microsoft.Rest.Azure.CloudException: The Content-Type header is either missing or it doesn't have a valid value. The content type header must either be application/cloudevents+json; charset=utf-8 or application/cloudevents-batch+json; charset=UTF-8.
Looks like the client code force content-type to be application/json:
https://github.com/Azure/azure-sdk-for-net/blob/bdc5c7a3d375371c3af4652c2ebfdb85dfdcd945/sdk/eventgrid/Microsoft.Azure.EventGrid/src/Generated/EventGridClient.cs#L350
Not quite sure if this is a bug or feature request… What is the recommended way to send CloudEvent to event grid?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Azure Event Grid client library for .NET
Microsoft publishes events for several Azure services. You can publish events from your own application using the EventGridPublisherClient .
Read more >Announcing the new Azure Event Grid Client Libraries
We are pleased to announce that the new Azure Event Grid libraries have reached general availability (GA). Version 4 of the Azure Event...
Read more >Introducing the new Azure Event Grid Client Libraries with ...
You can use the new Azure Event Grid client library to publish events to the Event Grid service in various event schemas (EventGrid,...
Read more >Troubleshoot Azure Event Grid issues
When the link is clicked, a CloudEvent containing the name of the file is published using Event Grid. Next steps. If you need...
Read more >Azure Event Grid client library for Python
This example sends a list of CloudEvents using the send method. WARNING: When sending a list of multiple events at one time, iterating...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Update: this issue is under discussion with Azure Data Plane SDK team for proper addressing this for customer. No ETA yet for resolving this issue as it is in the design phase.
@ahamad-MS is there a service issue associated with this issue? If not, would it be possible not to close it until the problem is addressed?