-
Notifications
You must be signed in to change notification settings - Fork 563
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
Comments
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. |
You have to just change localhost:27017 to 127.0.0.1:27017 |
If you still facing the issue just change your mongo URL and add MONGO_URL="mongodb://<your-database-url>:27017/<database-name>?authSource=admin" |
can anyone here how to do the full setup of the zip of this project to get perfect output |
replace the mongodb://localhost:27017 i also used this and it working |
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. |
Can you post the error? |
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 |
am confused your data is not connecting or not establing |
my data is not establing user input is not adding in my moogose |
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 |
There may be Problem due to the version of mongoose you have installed. There are some commands that are removed from latest versions. |
Help for this error
MongooseError: Operation
users.findOne()
buffering timed out after 10000msat Timeout. (C:\CHAT\chat-app\server\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:148:23)
The text was updated successfully, but these errors were encountered: