Closed laeakkk closed 1 year ago
Error has indicated that mongo cannot connect
[12:43:30] Server selection timed out after ${serverSelectionTimeoutMS} ms
, this.description);
[1] ^
[1]
[1] MongoServerSelectionError: connect ECONNREFUSED ::1:27017
[1] at Timeout._onTimeout (J:\1\BH3Smaster\node_modules\mongodb\lib\sdam\topology.js:285:38)
[1] at listOnTimeout (node:internal/timers:564:17)
[1] at process.processTimers (node:internal/timers:507:7) {
[1] reason: TopologyDescription {
[1] type: 'Unknown',
[1] servers: Map(1) {
[1] 'localhost:27017' => ServerDescription {
[1] address: 'localhost:27017',
[1] type: 'Unknown',
[1] hosts: [],
[1] passives: [],
[1] arbiters: [],
[1] tags: {},
[1] minWireVersion: 0,
[1] maxWireVersion: 0,
[1] roundTripTime: -1,
[1] lastUpdateTime: 1362629,
[1] lastWriteDate: 0,
[1] error: MongoNetworkError: connect ECONNREFUSED ::1:27017
[1] at connectionFailureError (J:\1\BH3Smaster\node_modules\mongodb\lib\cmap\connect.js:387:20)
[1] at Socket.
at connectionFailureError (J:\BH3_PS-master\BH3_PS-master\node_modules\mongodb\lib\cmap\connect.js:387:20) [1] at Socket. (J:\BH3_PS-master\BH3_PS-master\node_modules\mongodb\lib\cmap\connect.js:310:22)
[1] at Object.onceWrapper (node:events:628:26)
[1] at Socket.emit (node:events:513:28)
[1] at emitErrorNT (node:internal/streams/destroy:151:8)
[1] at emitErrorCloseNT (node:internal/streams/destroy:116:3)
[1] at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
[1] cause: Error: connect ECONNREFUSED ::1:27017
[1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
[1] errno: -4078,
[1] code: 'ECONNREFUSED',
[1] syscall: 'connect',