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

this._bson seems to be undefined in ClientEncryption with mongodb v4

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.0.0
    • Affects Version/s: next
    • Component/s: Client Side Encryption
    • None

      In our Node CSFLE project using version 3.6 of the driver installed through NPM everything works.

      Using the master branch (local dependencies managed via yalc) triggers the error:

      TypeError: Cannot read property 'serialize' of undefined
          at new ClientEncryption (/Users/nathan/mongo/csfle-guides/nodejs/node_modules/mongodb-client-encryption/lib/clientEncryption.js:114:43)
          at CsfleHelper.findOrCreateDataKey (/Users/nathan/mongo/csfle-guides/nodejs/helpers.js:77:26)
      

      clientEncryption.js:114.43
      helpers.js:77:26

      Is there going to be an API change for ClientEncryption for v4?

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            nathan.leniz@mongodb.com Nathan Leniz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: