Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongooseError #1

Open
suhartoschn opened this issue Jun 25, 2022 · 12 comments
Open

MongooseError #1

suhartoschn opened this issue Jun 25, 2022 · 12 comments

Comments

@suhartoschn
Copy link

Help for this error
MongooseError: Operation users.findOne() buffering timed out after 10000ms
at Timeout. (C:\CHAT\chat-app\server\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:148:23)

@aMannanAnsari
Copy link

If you are using MongoDB in local so you can use as mongoose.connect( uri ) mongoose uri not like localhost:27017 You can change this into like this one 127.0.0.1:27017 and your mongoose ll connect with correct local DB Just Try it.

@aMannanAnsari
Copy link

You have to just change localhost:27017 to 127.0.0.1:27017

@rudSarkar
Copy link

Help for this error MongooseError: Operation users.findOne() buffering timed out after 10000ms at Timeout. (C:\CHAT\chat-app\server\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:148:23)

If you still facing the issue just change your mongo URL and add ?authSource=admin end of your database name like below:

MONGO_URL="mongodb://<your-database-url>:27017/<database-name>?authSource=admin"

@HarshTambade
Copy link

can anyone here how to do the full setup of the zip of this project to get perfect output

@Sharifa26
Copy link

Sharifa26 commented Sep 22, 2022

replace the mongodb://localhost:27017
with mongodb://0.0.0.0:27017

i also used this and it working

@Mayank-sudo
Copy link

Mayank-sudo commented Sep 24, 2022

My code worked normaly from one PC but from another one I got the same error

I fixed it by adding my current IP to Security - Network Access - IP Access List in the hosting server.

@rudSarkar
Copy link

My code worked normaly from one PC but from another one I got the same error. I have MongoDB free hosting by https://www.mongodb.com/ .

I fixed it by adding my current IP to Security - Network Access - IP Access List in the hosting server.

Can you post the error?

@Piyushg094
Copy link

can anyone give me a suggestion how the code work i did everything but my database is not working anyone please share me a steps of this how its wort its please

@Mayank-sudo
Copy link

am confused your data is not connecting or not establing

@Piyushg094
Copy link

my data is not establing user input is not adding in my moogose

@Piyushg094
Copy link

Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/ this error is genareting

@hardiii13
Copy link

There may be Problem due to the version of mongoose you have installed. There are some commands that are removed from latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants