FLE MongoError: BSON field 'insert.jsonSchema' is an unknown field

Hi am also getting this error and not understanding what I have to do. Please help me out.
@wan

writeError occurred: MongoServerError: BSON field 'insert.jsonSchema' is an unknown field. This command may be meant for a mongocryptd process.
    at Connection.onMessage (/home/shahed/Documents/encryptionDemo/node_modules/mongodb/lib/cmap/connection.js:230:30)
    at MessageStream.<anonymous> (/home/shahed/Documents/encryptionDemo/node_modules/mongodb/lib/cmap/connection.js:61:60)
    at MessageStream.emit (node:events:513:28)
    at processIncomingData (/home/shahed/Documents/encryptionDemo/node_modules/mongodb/lib/cmap/message_stream.js:125:16)
    at MessageStream._write (/home/shahed/Documents/encryptionDemo/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at Socket.ondata (node:internal/streams/readable:766:22)
    at Socket.emit (node:events:513:28) {ls

[pt-BR]
Eu consegui resolver!!! Aparentemente, meu mongocryptd estava com a porta ja em uso, como mostra a imagem abaixo

imagem01

Então, escolhi uma porta diferente, e funcionou!

mongocryptd --port 27021

Cabe ver o que está utilizando a porta padrão e, se for o caso, matar o processo rodando na porta

[en-US]
I solved the problem!! Apparently, my mongocryptd lib had the port in use, as in the image above (image01 (imagem01) above)

so i choose another port and it’s working!

mongocryptd --port 27021

it would be good to check what is using the default port and if so kill the process running on the port.

1 Like