MongoError: pool is draining, new operations prohibited – How to fix?

MongoError: pool is draining, new operations prohibited – How to fix? You might face this error while doing some operations on a Mongo database. mongoose.connect(url, {bufferMaxEntries: 0, reconnectTries: 5000, useNewUrlParser: true,useUnifiedTopology: true}); This error basically means that the connection that you established with the mongodb has already expired. To elaborate, you haven’t used connection pool with your … Read more