MongooseServerSelectionError: self signed certificate in certificate chain with useNewUrlParser or useUnifiedTopology #9147
Labels
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I am trying to migrate from mongoose
4.13.20
to5.9.18
. The problem is I am not able to connect to mongodb with eithermongoose.set('useNewUrlParser', true);
ormongoose.set('useUnifiedTopology', true);
or both.Script I use with
4.13.20
Output:
Script I use with
5.9.18
(withoutuseNewUrlParser
oruseUnifiedTopology
)Output:
Script I use with
5.9.18
(withuseNewUrlParser
oruseUnifiedTopology
)Output:
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node.js -> v10.15.3
npm -> 6.14.1
mongoose -> migrating from
4.13.20
to5.9.18
MongoDB -> 3.2.19
The text was updated successfully, but these errors were encountered: