Hi, I am getting a weird error (below) since I upgraded my database to v2, it seems like the new version sleeps and disconnects my service for no reason.
/app/node_modules/mongodb/src/cmap/connection.ts:338
op.cb(new MongoNetworkError(message));
^
MongoNetworkError: connection 31 to <IP>:30400 closed
at Connection.onClose (/app/node_modules/mongodb/src/cmap/connection.ts:338:13)
at Socket.<anonymous> (/app/node_modules/mongodb/src/cmap/connection.ts:243:42)
at Socket.emit (node:events:517:28)
at Socket.emit (node:domain:489:12)
at TCP.<anonymous> (node:net:350:12) {
[Symbol(errorLabels)]: Set(0) {}
}
[nodemon] app crashed - waiting for file changes before starting...
mongo logs of that time have been attached as an image.