Connecting with autoEncryption causes repeated connection and disconnection.
See original GitHub issueDo you want to request a feature or report a bug? Bug
What is the current behavior? When connecting with autoEncryption in options to use FLE, mongoose connects and disconnects repeatedly.
If the current behavior is a bug, please provide the steps to reproduce. Connect to a mongo 4.4.3 instance with the autoEncryption option set, something such as
{ useUnifiedTopology: true, useNewUrlParser: true, autoIndex: false, useCreateIndex: true, autoEncryption: { keyVaultNamespace, kmsProviders, schemaMap, }, }
This exact setup worked with mongo 4.2 just fine.
What is the expected behavior? Previously when connecting to mongo version 4.2 everything worked as expected, it would connect and not lose the connection.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that “latest” is not a version. Node 13.5, Mongoose 5.11.14, mongodb driver 3.6.3, mongodb 4.4.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
@vkarpov15 It appears that my app still functions correctly and when I look at the logs to the mongocryptd the connection is maintained. however in the event handlers
the logs are thrown repeatedly. Are you able to get consistent results with these event handlers? Im not super worried now that it appears it doesnt actually drop the connection.
@vkarpov15 seems to be an issue with the drivers. I think we can close this issue.