-
Notifications
You must be signed in to change notification settings - Fork 327
MongoError: server is closed #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey there, I struggle with similar issues - I traced it back to connections pooling, and closing early. Happens on the solution branch too. Playing around with the following seems to help somewhat mongoose.connect('mongodb://localhost/', {
poolSize: 15,
useNewUrlParser: true,
useUnifiedTopology: true
} throwing error: MongoError: server is closed without useUnifiedTopology it throws: MongoError: pool is draining, new operations prohibited |
PR #17 seems to be providing the most consistent results so far. |
PR #17 ftw |
Getting this error
MongoError: server is closed
right before theshould have correct fields
user test when running this command:yarn test exercises/models/__test__/user.spec.js
. Strangely if I remove the previousbetaUser should default to false
test, the error goes away.Full error:
The text was updated successfully, but these errors were encountered: