Callbacks Stop Happening
Problem
I've been using `mongoose` for a few years, but lately I'm having a lot of trouble where the connection seems to disappear. Connection Settings [code block] The Problem Mongoose just stops calling back. It doesn't emit any errors, memory/cpu is fine on my server & db, and I can connect from any other server. Restarting always fixes it: [code block] Versions On `mongoose 4.4.11`, `mongoose.connection.readyState === UNAUTHORIZED` when callbacks stop. So I upgraded to `mongoose 4.6.0` but within 4 hours the callbacks stopped again, now with `mongoose.connection.readyState === CONNECTED`. Any Ideas Any ideas how I can get this to stop happening? I'm happy to gather any more debugging info, just let me know what info to get.
Error Output
Error connecting to db: "+err); }
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Callbacks Stop Happening
Are you connecting to a standalone, replica set, or sharded cluster? Also, can you confirm you're using SSL?
Trust Score
1 verification
- 1
Are you connecting to a standalone, replica set, or sharded cluster? Also, can y
Are you connecting to a standalone, replica set, or sharded cluster? Also, can you confirm you're using SSL?
Validation
Resolved in Automattic/mongoose GitHub issue #4513. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep