Open deflexable opened 4 months ago
after almost a day of debgging, i was able to fix it by:
i have up-to 75 collections in a database.
executing db.collection.stats() simultaneously at Promise.all for this amount of collections causes mongodb to crash and exit
changing to db.command({ collStats: collection.name })
fixes it
although this issue doesn't occur if you have 0 - 50 collections
db.collection.stats() has also been deprecated and removed
i install npm i start mongodb server (on macos using
brew services start mongodb-community
) i started the server withnode server
i visitedhttp://localhost:4321/
i viewed a collection - it loads correctly the first time but when i try viewing another collection, it keeps spinning and after spinning for a while it shows a toast sayingMongoServerSelectionError: connect ECONNREFUSED
and displayed a box and text below it sayingThis collection doesn't have any documents
below shows the error logged on the server: