R
Railway10mo ago
mahrez

Mongo Network Error introduced in V2

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...
/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.
No description
2 Replies
Percy
Percy10mo ago
Project ID: 6f8fa646-b91e-4b1d-b8fa-c8e573eed3cb
mahrez
mahrezOP10mo ago
6f8fa646-b91e-4b1d-b8fa-c8e573eed3cb Anyone?
Want results from more Discord servers?
Add your server