We have a producer application which gets data via changestream from mongodb and posts to kafka. But it started failing from last night with below error. What could be the cause?
MongoServerError: Entry field "o.version" should be string, found: long
at MessageStream.messageHandler (/usr/src/app/node_modules/mongodb/lib/cmap/connection.js:467:30)
at MessageStream.emit (events.js:400:28)
at MessageStream.emit (domain.js:475:12)
at processIncomingData (/usr/src/app/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
at MessageStream._write (/usr/src/app/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
at writeOrBuffer (internal/streams/writable.js:358:12)
at MessageStream.Writable.write (internal/streams/writable.js:303:10)
at Socket.ondata (internal/streams/readable.js:731:22)
at Socket.emit (events.js:400:28)
at Socket.emit (domain.js:475:12) {
operationTime: new Timestamp({ t: 1682491411, i: 106 }),
ok: 0,
code: 40532,
codeName: 'Location40532',
'$clusterTime': {
clusterTime: new Timestamp({ t: 1682491411, i: 108 }),
signature: {
hash: new Binary(Buffer.from("e72109e0cc06eed5230ee17b39ae1db873ae91fa", "hex"), 0),
keyId: new Long("7186622876357755161")