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

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

Closed
susosuso opened this issue Mar 18, 2020 · 10 comments
Closed
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Event Grid needs-author-feedback More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@susosuso
Copy link

susosuso commented Mar 18, 2020

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:

_httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");

Not quite sure if this is a bug or feature request... What is the recommended way to send CloudEvent to event grid?

@triage-new-issues triage-new-issues bot added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Mar 18, 2020
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. Event Grid question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Mar 18, 2020
@ghost
Copy link

ghost commented Mar 18, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jfggdl.

@ahamad-MS
Copy link
Contributor

Thanks for reporting this issue. We are investigating/triaging it.

@ahamad-MS
Copy link
Contributor

We added this to our backlog and will address it appropriately. thanks

@SeanFeldman
Copy link
Contributor

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

@ahamad-MS ahamad-MS reopened this May 23, 2020
@ahamad-MS
Copy link
Contributor

@SeanFeldman sure. issue reopened.

@ahamad-MS
Copy link
Contributor

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.

@ppatino
Copy link

ppatino commented Jul 23, 2020

@ahamad-MS any updates here? Basic usage from this sample is failing and I'm not finding a workaround. @susosuso did you find a workaround?

@ahamad-MS
Copy link
Contributor

Hello @ppatino .. The only workaround here is using pure http APIs to send your events while getting cloud event support in SDK. The earlier ETA for .NET and JAVA SDKs is mid-end of Sep (provided no blocker issues). Python and Typescript support will hopefully be available earlier on mid-end of Aug (again, provided no blocker issues).

@ahamad-MS
Copy link
Contributor

ahamad-MS commented Oct 6, 2020

@ppatino

This issue has been fixed in our new generation of SDK https://www.nuget.org/packages/Azure.Messaging.EventGrid/4.0.0-beta.2 . Please confirm you no longer have this issue.

@ahamad-MS ahamad-MS added needs-author-attention needs-author-feedback More information is needed from author to address the issue. labels Oct 6, 2020
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Oct 16, 2020
@ghost
Copy link

ghost commented Oct 16, 2020

Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@ghost ghost closed this as completed Oct 30, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Event Grid needs-author-feedback More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants