diff --git a/lib/operations/connect.js b/lib/operations/connect.js index fe600ff30e..54b5c8a1cf 100644 --- a/lib/operations/connect.js +++ b/lib/operations/connect.js @@ -493,7 +493,10 @@ function createTopology(mongoClient, topologyType, options, callback) { connectionString = 'mongodb://%2Ftmp%2Fmongocryptd.sock/?serverSelectionTimeoutMS=1000'; } - const mongocryptdClient = new MongoClient(connectionString, { useUnifiedTopology: true }); + const mongocryptdClient = new MongoClient(connectionString, { + useNewUrlParser: true, + useUnifiedTopology: true + }); mongocryptdClient.connect(err => { if (err) return callback(err, null);