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

CloudEvent schema not working for EventGridTrigger #111

Closed
sandromastronardi opened this issue Feb 8, 2023 · 1 comment
Closed

CloudEvent schema not working for EventGridTrigger #111

sandromastronardi opened this issue Feb 8, 2023 · 1 comment

Comments

@sandromastronardi
Copy link

I seem to be missing the CloudEvent deserialisation here

.AddConverter<JToken, EventGridEvent>((jobject) => jobject.ToObject<EventGridEvent>()) // surface the type to function runtime

The docs say i can use CloudEvents but in reality i cannot, the validation of the endpoint fails.
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/README.md

Did some code disappear? How should it work? I'm using a webhook now, but for those the 401's cause a drop of messages so i want to use the builtin feature.

Sandro

@sandromastronardi
Copy link
Author

never mind, this seems to be old code, i found this:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/HttpRequestProcessor.cs

and it seems the version wasnt the latest one even though i thought it was (the beta didnt' show in the nuget manager dropdown and so the last version was shown) . my bad...

@sandromastronardi sandromastronardi closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2023
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

No branches or pull requests

1 participant