[CSHARP-2320] Issue with reading/writing deep root object (An error occurred while deserializing) Created: 05/Jul/18  Updated: 05/Apr/19  Resolved: 14/Jan/19

Status: Closed
Project: C# Driver
Component/s: BSON
Affects Version/s: 2.2.3, 2.7.0
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Gourav Sinha Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows server 2012, Linux CentOS7


Issue Links:
Related
related to CSHARP-2368 Corrupted Collection Name and Properi... Closed

 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?

 



 Comments   
Comment by Jeffrey Yemin [ 14/Jan/19 ]

Hi gouravsinha,

As with the linked ticket CSHARP-2368, there's not enough information provided here to reproduce it, but if you'd like to pursue this issue further, let us know and we can re-open. In particular, a full stack trace would help a lot.

Generated at Wed Feb 07 21:42:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.