bradtraversy / node_passport_login

Node.js login, registration and access control using Express and Passport
1.73k stars 1.3k forks source link

UnhandledPromiseRejectionWarning: MongooseError: Operation `users.findOne()` buffering timed out after 10000ms #100

Open Tahir-786 opened 2 years ago

Tahir-786 commented 2 years ago

HELP ME TO SOLVE THE PROBLEM ........... I FOUND AN ANSWER IN STACK OVERFLOW BUT THAT WAS'NT HELPFUL....

ShramanJain commented 2 years ago

@Tahir-786 Were you able to find a solution? I am facing the same problem.

Tahir-786 commented 2 years ago

Yes sir...!

I occurred because there was a problem with MongoDB connection And I'm sure it's same with you

I you haven't done yet I can help you Just let me know

On Tue, Jan 11, 2022, 17:53 Shraman Jain @.***> wrote:

@Tahir-786 https://github.com/Tahir-786 Were you able to find a solution? I am facing the same problem.

— Reply to this email directly, view it on GitHub https://github.com/bradtraversy/node_passport_login/issues/100#issuecomment-1009913719, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKOCRWW5FGZ7KFA3BG3OE3UVQOKNANCNFSM5HATEA5Q . You are receiving this because you were mentioned.Message ID: @.***>

ShramanJain commented 2 years ago

Yes I am not able to figure out a solution and I would really appreciate your help.

I have signed into mongodb atlas. I whitelisted 0.0.0.0/0 which should allow access from anywhere and I also edited the string in keys.js to

dbPassword = 'mongodb+srv://shraman:<pass>@shrmncluster1.jjwcm.mongodb.net/test?retryWrites=true&w=majority';

module.exports = {
    mongoURI: dbPassword
};

and I put my password instead of . But it still gives this error.

Tahir-786 commented 2 years ago

If you can text me privately then I can see it in details

Otherwise it's hard to explain here for me 🤠 Here is my whatsapp number.... +919596694856

Just ignore if you don't like......

On Thu, Jan 13, 2022, 12:30 Shraman Jain @.***> wrote:

Yes I am not able to figure out a solution and I would really appreciate your help.

I have signed into mongodb atlas. I whitelisted 0.0.0.0/0 which should allow access from anywhere and I also edited the string in keys.js to

dbPassword = @.***/test?retryWrites=true&w=majority';

module.exports = { mongoURI: dbPassword };

and I put my password instead of . But it still gives this error.

— Reply to this email directly, view it on GitHub https://github.com/bradtraversy/node_passport_login/issues/100#issuecomment-1011850325, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKOCRR3VBOXWAMVL2CQKZLUVZ2ABANCNFSM5HATEA5Q . You are receiving this because you were mentioned.Message ID: @.***>