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
Describe the bug
hi, i got this error from mongodb, i searched for it on google https://jira.mongodb.org/browse/NODE-1868 problem because call mongodb too many time.
the options [servers] is not supported
the options [caseTranslate] is not supported
the options [dbName] is not supported
the options [srvHost] is not supported
So I think to create a middleware called end.js. Is this the best way to fix this error ? Thank you
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
hi, i got this error from mongodb, i searched for it on google https://jira.mongodb.org/browse/NODE-1868 problem because call mongodb too many time.
the options [servers] is not supported
the options [caseTranslate] is not supported
the options [dbName] is not supported
the options [srvHost] is not supported
So I think to create a middleware called end.js. Is this the best way to fix this error ? Thank you
import { mongoClient } from "./database";
export default (req, res, next) => {
mongoClient.close()
console.log("close connect db")
next()
};
Beta Was this translation helpful? Give feedback.
All reactions