Error not able to run mongodb via node js – M001: MongoDB Basics
MongoServerSelectionError: connect ECONNREFUSED ::1:27017
at Timeout._onTimeout (D:vit 3rd semweb tech vanmathi c mam labnode_modulesmongodblibsdamtopology.js:330:38)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7) {
reason: TopologyDescription {
type: ‘Unknown’,
servers: Map(1) { ‘localhost:27017’ => [ServerDescription] },
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
logicalSessionTimeoutMinutes: undefined
}
}
Read more here: Source link