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
After entering the command 'npm start'
Getting these errors:
-DeprecationWarning: current Server Discovery and Monitoring engine is deprecated
-connection error MongoNetworkError: failed to connect to server [cluster0-shard-00-02-fy0po.mongodb.net:27017] on first connect [MongoNetworkError: connection 10 to cluster0-shard-00-02-fy0po.mongodb.net:27017 closed
Any debugging help with this issue would be appreciated.
The text was updated successfully, but these errors were encountered:
ysiddhapura
changed the title
Potential Issue starting up Project on Mac | mongoErrorContextSymbol
DeprecationWarning & mongoErrorContextSymbol errors when starting project on Mac
Feb 27, 2023
By adding 'useUnifiedTopology: true' to -> mongoose.connect(db, { useNewUrlParser: true, useUnifiedTopology: true }); in the files: app.js, sale.js and users.jsresolved the initial DeprecationWarning and the initial MongoNetworkError.
Now able to load the home page.
mongoErrorContextSymbol error still persists, when navigating to the Register/Sign In pages.
The server closes with a
-connection error MongooseError [MongooseServerSelectionError]: connection to 52.54.19.162:27017 closed |
reason: TopologyDescription
type: 'ReplicaSetNoPrimary',
error: MongoNetworkError: connection to 52.54.19.162:27017 closed
[Symbol(mongoErrorContextSymbol)]
After entering the command 'npm start'
Getting these errors:
-DeprecationWarning: current Server Discovery and Monitoring engine is deprecated
-connection error MongoNetworkError: failed to connect to server [cluster0-shard-00-02-fy0po.mongodb.net:27017] on first connect [MongoNetworkError: connection 10 to cluster0-shard-00-02-fy0po.mongodb.net:27017 closed
The text was updated successfully, but these errors were encountered: