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
@JyothsnaVellampalli hi,
there can be many reasons for that one I might think is :
your connection string : make sure your connection string looks something like this
mongodb+srv://<your_username>:<your_password>@practice.jto9p.mongodb.net/?retryWrites=true&w=majority
and replace your username and password from MongoDB to here.
if nothing works pinpoint your error using this:
const client = new MongoClient(uri, { useNewUrlParser: true, useUnifiedTopology: true, loggerLevel: 'debug' });
then log the error on chatgpt for further help.
hope it helps :)
Happy coding.
While running server, I got this error,
Error: querySrv ENOTFOUND _mongodb._tcp.practice.jto9p.mongodb.net did not connect
Kindly add correct mongo url.
The text was updated successfully, but these errors were encountered: