-
-
Notifications
You must be signed in to change notification settings - Fork 188
Closed
Description
Versions
- NodeJS: 16.13.1
- mongodb-memory-server-*: latest
- mongodb: 5.0.5
- mongoose: 7.3.1
- system: Linux - Zorin OS based on Ubuntu focal
package: mongo-memory-server
What am I doing wrong?
error: failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED 127.0.0.1:27017
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
name: 'MongoNetworkError',
errorLabels: [Array],
[Symbol(mongoErrorContextSymbol)]: {}
}] {"name":"MongoNetworkError","errorLabels":["TransientTransactionError"]}
Couldnt download "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-5.0.5.tgz"! connect ECONNREFUSED 127.0.0.1:443
Starting the instance failed, enable debug for more information
[bugsnag] Unhandled rejection…
Error: connect ECONNREFUSED 127.0.0.1:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)
[bugsnag] Unhandled rejection…
MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED 127.0.0.1:27017
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
name: 'MongoNetworkError'
}]
code is
mongoServer = await MongoMemoryServer.create({
binary: {
version: '5.0.5',
skipMD5: true,
},
});
mongoServer.getConnectionString().then(console.log);Metadata
Metadata
Assignees
Labels
No labels