I am facing issue while setting yup auto encryption ,
i got this : “writeError occurred: MongoServerError: BSON field ‘insert.jsonSchema’ is an unknown field. This command may be meant for a mongocryptd process.” whne added these options :const secureClient = new MongoClient(uri, {
autoEncryption: {
keyVaultNamespace,
kmsProviders,
schemaMap:patientSchema,
extraOptions: {
mongocryptdURI: uri,
mongocryptdSpawnPath: “C:/Program Files/MongoDB/Server/8.0/bin/mongodecrypt.exe”,
mongocryptdBypassSpawn: false,
}
}
});" and this :“TypeError: A crypt_shared override path was specified [C:/Program Files/MongoDB/Server/8.0/bin/mongodecrypt.exe], but we failed to open a dynamic library at that location. Load error: [(null)]” when writing this :const secureClient = new MongoClient(uri, {
autoEncryption: {
keyVaultNamespace,
kmsProviders,
schemaMap:patientSchema,
extraOptions: {
cryptSharedLibPath: “C:/Program Files/MongoDB/Server/8.0/bin/mongodecrypt.exe”,
}
}
});"
Skip to main content
Hello! For the message about not finding a dynamic library at the location specified, I notice you’re pointing cryptSharedLibPath to an exe. You’ll need to replace that with the crypt_shared shared library. You can find more information about downloading this and the difference between it and mongocryptd at https://www.mongodb.com/docs/manual/core/queryable-encryption/install-library/
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Offline desktop app | 4 | 679 | Feb 21 |
Failed to connect to cluster using a env file | 3 | 1.1k | May 2024 |
In my MongoDB atlas connection string, it auto connects to test db | 0 | 282 | Jul 2024 |
How to convert a $date to a $timestamp in an aggregation pipeline. (or any other means) | 0 | 57 | Oct 2024 |
Enable Profile in Mongodb Atlas Database | 0 | 29 | Dec 2024 |