Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1246

Improve BSON deserialization error messages

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      We've had various users reach out to us for help when they run into deserialization errors using our Serde integration. This is often because they end up with some sort of inconsistent data in their DB that cannot be deserialized to their defined type, and they don't understand or cannot diagnose the problem just from the error message.

      We should try to help them out by making the deserialization errors we have control over as descriptive as we can.

      For one set of candidates, all of the errors here could be updated such that if the incorrect BSON type is found, we report what we found instead.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: