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

Implement Deserialize for ExtendedPointId to improve error reporting #1416

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

agourlay
Copy link
Member

Users are struggling errors due to malformed point ids when upserting points in batch fashion.

The error does not mention the problematic input.

Json deserialize error: data did not match any variant of untagged enum ExtendedPointId at line 1 column 8926

Serde's untagged union is known for this issue.

I found the following post exposing an idea as a workaround when using only JSON https://users.rust-lang.org/t/serde-untagged-enum-ruins-precise-errors/54128

@agourlay agourlay marked this pull request as ready for review January 31, 2023 16:45
@agourlay agourlay merged commit 68b34b1 into dev Jan 31, 2023
@agourlay agourlay deleted the improve-error-reporting-point-id-deser branch January 31, 2023 18:57
generall pushed a commit that referenced this pull request Feb 6, 2023
…1416)

* Implement Deserialize for ExtendedPointId to improve error reporting

* better error message
@generall generall mentioned this pull request Apr 19, 2023
8 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants