Hello everyone. I got this error today and I am not sure of what caused it.
If anyone has some clue of where to start investigating, it would be great
here is the error :
2022-11-23T03:29:27.173Z - MongoError: cannot infer query fields to set, path 'log_index' is matched twice
at Function.create (/moralis-server/node_modules/mongodb/lib/core/error.js:57:12)
at toError (/moralis-server/node_modules/mongodb/lib/utils.js:123:22)
at /moralis-server/node_modules/mongodb/lib/operations/common_functions.js:379:39
at handler (/moralis-server/node_modules/mongodb/lib/core/sdam/topology.js:942:24)
at /moralis-server/node_modules/mongodb/lib/cmap/connection_pool.js:350:13
at handleOperationResult (/moralis-server/node_modules/mongodb/lib/core/sdam/server.js:558:5)
at MessageStream.messageHandler (/moralis-server/node_modules/mongodb/lib/cmap/connection.js:277:5)
at MessageStream.emit (node:events:513:28)
at MessageStream.emit (node:domain:489:12)
at processIncomingData (/moralis-server/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
at MessageStream._write (/moralis-server/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
at writeOrBuffer (node:internal/streams/writable:391:12)
at _write (node:internal/streams/writable:332:10)
at MessageStream.Writable.write (node:internal/streams/writable:336:10)
at Socket.ondata (node:internal/streams/readable:754:22)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
Thanks