MongoSocketReadException: Prematurely reached end of stream (after a period of inactivity)

前端 未结 6 1914
Happy的楠姐
Happy的楠姐 2020-12-05 02:34

I get this error on a find call (default Java Driver) after a period of inactivity. I tried to add a manual heartbeat (writing to a capped collection), but it d

6条回答
  •  既然无缘
    2020-12-05 03:19

    To me it was a whole different issue - I was using mongo-java-server with Fongo and ended up getting this error. Turns out that old versions of it are not compatible with FieldType.DECIMAL128 conversions.

    Updating it to the latest one (1.36.0 currently) fixed the issue for me.

提交回复
热议问题