You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:22113) UnhandledPromiseRejectionWarning: MongoParseError: option reconnecttries is not supported
at parseOptions (<ROOTDIR>/node_modules/mongodb/lib/connection_string.js:280:15)
at new MongoClient (<ROOTDIR>/node_modules/mongodb/lib/mongo_client.js:62:63)
at <ROOTDIR>/node_modules/mongoose/lib/connection.js:784:16
at new Promise (<anonymous>)
at NativeConnection.Connection.openUri (<ROOTDIR>/node_modules/mongoose/lib/connection.js:781:19)
at <ROOTDIR>/node_modules/mongoose/lib/index.js:344:10
at <ROOTDIR>/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5
at new Promise (<anonymous>)
at promiseOrCallback (<ROOTDIR>/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback (<ROOTDIR>/node_modules/mongoose/lib/index.js:1182:10)
Expected Behavior
Either Mongoose should be updated to support the reconnectTries property, or references to it should be removed from the docs and marked as deprecated in public documentation.
The text was updated successfully, but these errors were encountered:
ace-n
changed the title
Fix "reconnectTries is not supported" error
docs: fix "reconnectTries is not supported" error
Jun 13, 2022
Prerequisites
Mongoose version
6.3.8
Node.js version
14.19.1
MongoDB server version
N/A
Description
The Mongoose docs mention a property called
reconnectTries
.This used to work fine with the
mongodb
NPM package for3.x
versions, but fails on the latest versions ofmongodb
(4.x
) that Mongoose itself uses.Steps to Reproduce
Run this code:
Actual Behavior
I get an error that looks like this:
Expected Behavior
Either Mongoose should be updated to support the
reconnectTries
property, or references to it should be removed from the docs and marked as deprecated in public documentation.The text was updated successfully, but these errors were encountered: