question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.Azure.EventGrid - Can not send CloudEvent using EventGridClient

See original GitHub issue

We 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ahamad-MScommented, Jul 1, 2020

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.

1reaction
SeanFeldmancommented, May 21, 2020

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found