Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2320

Issue with reading/writing deep root object (An error occurred while deserializing)

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.3, 2.7.0
    • BSON
    • Windows server 2012, Linux CentOS7

    Description

      We have deployed Mongodb on our production environment with the primary being a Linux CentOS 7.0 and 2 secondary as windows, both running Mongodb 3.4. Its been running for more than 2 years ( We shifted primary to Linux a few months ago) 

      Over the last few weeks a lot of errors are started cropping up which read 

      An error occurred while deserializing the <Property> property of class<Class>: An error occurred while deserializing the <property1> property of class <Class1>: Attempted to read past the end of the stream.

      The <property>, <property1> and <Class1> as well as the last line of the error keeps changing but  Class is usually the same. 

      Following are some of the errors of the last line. 

      • String is missing terminating null byte.
      • Attempted to read past the end of the stream.
      • : Detected unknown BSON type "\x45" for fieldname "?". Are you using the latest driver version?
      • Expected size to be 838, not 453.

      We already updated the Driver version from 2.2.3 to 2.7.0 but the error is still there. 

      Can anyone help with this?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            gouravsinha Gourav Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: