I have been getting mongoose connection error whenever I install firebase-admin package and it fixes itself whenever I remove the package. The database I am using is mongoDB in node.js.
The config I am passing are as follows:
options: {
useUnifiedTopology: true,
useNewUrlParser: true,
socketTimeoutMS: 30000,
keepAlive: true,
autoIndex: false,
retryWrites: false
},
url: ‘mongodb://127.0.0.1:27017/hello-hello-backend’
The error:
I think this may help you!