chat-app-react-nodejs icon indicating copy to clipboard operation
chat-app-react-nodejs copied to clipboard

MongooseError

Open suhartoschn opened this issue 3 years ago • 12 comments

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)

suhartoschn avatar Jun 25 '22 06:06 suhartoschn

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 avatar Jun 30 '22 09:06 aMannanAnsari

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

aMannanAnsari avatar Jun 30 '22 09:06 aMannanAnsari

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"

rudSarkar avatar Jul 19 '22 01:07 rudSarkar

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

HarshTambade avatar Aug 02 '22 10:08 HarshTambade

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

i also used this and it working

Sharifa26 avatar Sep 22 '22 10:09 Sharifa26

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.

Mayank-sudo avatar Sep 24 '22 17:09 Mayank-sudo

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?

rudSarkar avatar Sep 24 '22 19:09 rudSarkar

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

Piyushg094 avatar Nov 02 '22 06:11 Piyushg094

am confused your data is not connecting or not establing

Mayank-sudo avatar Nov 02 '22 08:11 Mayank-sudo

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

Piyushg094 avatar Nov 02 '22 13:11 Piyushg094

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

Piyushg094 avatar Nov 02 '22 14:11 Piyushg094

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

hardiii13 avatar Jan 15 '23 17:01 hardiii13