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

Partial events deserialize but don't return data. #15062

Closed
pakrym opened this issue Sep 10, 2020 · 1 comment · Fixed by #15076
Closed

Partial events deserialize but don't return data. #15062

pakrym opened this issue Sep 10, 2020 · 1 comment · Fixed by #15076
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Event Grid

Comments

@pakrym
Copy link
Contributor

pakrym commented Sep 10, 2020

EventGridEvent.Parse(@"{""data"":""""}").Single().GetData<string>();

Would fail with the argument null exception during GetData call

Related to: #15058
cc @ellismg

@pakrym pakrym added Event Grid Client This issue points to a problem in the data-plane of the library. labels Sep 10, 2020
@ellismg
Copy link
Member

ellismg commented Sep 10, 2020

FWIW, @JoshLove-msft, In JavaScript land, we throw an error in our parser if the data is malformed (i.e. there are JSON errors) or any required fields of the event type are missing (or are of the wrong type)).

@JoshLove-msft JoshLove-msft linked a pull request Sep 11, 2020 that will close this issue
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2023
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants