Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1637

key $clusterTime must not start with '$'

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 3.1.3
    • Component/s: None
    • Environment:
      Amazon Linux, node 8,
      mongodb driver 3.1.3. bson 1.1.0
      Mongodb enterprise 4.0.1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We are experiencing this error as we attempt to write to a MongoDb enterprise version 4.0.1. We saw from issue NODE-1627 that we needed to upgrade the driver and bson package.
      We performed that upgrade and continue to get the response clipped below.

      More information: Node server is in AWS EC2 Instance running the latest AMI Linux
      Mongo is hosted in the same AWS region on EC2 as well.

      "error": "{\"message\":\"key $clusterTime must not start with '$'\",\"name\":\"Error\",\"stack\":\"Error: key $clusterTime must not start with '$'\\n    at Query.toBin (/usr/src/app/node_modules/mongodb-core/lib/connection/commands.js:145:25)\\n    at serializeCommands (/usr/src/app/node_modules/mongodb-core/lib/connection/pool.js:1044:43)\\n    at Pool.write (/usr/src/app/node_modules/mongodb-core/lib/connection/pool.js:1260:3)\\n    at executeWrite (/usr/src/app/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:147:10)\\n    at WireProtocol.insert (/usr/src/app/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:158:3)\\n    at Server.insert (/usr/src/app/node_modules/mongodb-core/lib/topologies/server.js:815:35)\\n    at executeWriteOperation (/usr/src/app/node_modules/mongodb-core/lib/topologies/replset.js:1223:37)\\n    at ReplSet.insert (/usr/src/app/node_modules/mongodb-core/lib/topologies/replset.js:1241:3)\\n    at ReplSet.insert (/usr/src/app/node_modules/mongodb/lib/topologies/topology_base.js:321:25)\\n    at insertDocuments (/usr/src/app/node_modules/mongodb/lib/operations/collection_ops.js:822:19)\\n    at insertOne (/usr/src/app/node_modules/mongodb/lib/operations/collection_ops.js:852:3)\\n    at /usr/src/app/node_modules/mongodb/lib/utils.js:437:24\\n    at new Promise (<anonymous>)\\n    at executeOperation (/usr/src/app/node_modules/mongodb/lib/utils.js:432:10)\\n    at Collection.insertOne (/usr/src/app/node_modules/mongodb/lib/collection.js:463:10)\\n    at AuthenticationLog.<anonymous> (/usr/src/app/node_modules/@sakuraapi/core/lib/src/core/@model/model-operators/create.js:24:34)\"}",
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel@olivetech.com Daniel Chen
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None