-
Notifications
You must be signed in to change notification settings - Fork 134
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
Better Details for BSON Deserialization Errors #435
Comments
We recognize that the current error messages aren't great; unfortunately, the way serde is set up makes it tricky to include path or other source location. This is definitely on our roadmap, though - you can follow https://jira.mongodb.org/browse/RUST-1246 for updates. |
Thanks! Is it possible for me to somehow utilize dtolnay/path-to-error or would this need to be incorporated in this crate? |
I'm in the same situation. I like your idea @clarkmcc of using dtolnay/path-to-error. Have you figured out how to implement it? If not have you found any other solution/workaround? |
Yes, please. The current errors are not very helpful at all and I had to trial-and-error myself through this. |
@jaredtmartin unfortunately I don't have a solution for this but yes, it's a real pain to deal with. |
This is extremely bad to work with, especially when you have tens of fields. It's basically impossible to find where the de-serialization error comes from. Very sad that nothing is being done about it. |
Sorry, we apparently forgot to update here! If you enable the |
When I get a BSON deserialization error, it looks something like this
Is it possible to have the error contain more helpful information, like the path or something like that? I've been stomping out little deserialization issues for the last several months, and it's tricky to figure out exactly what set it off.
The text was updated successfully, but these errors were encountered: