Skip to content

MongooseError #1

Open
Open

Description

@suhartoschn

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)

Activity

  1. aMannanAnsari commented on Jun 30, 2022

    @aMannanAnsari

    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.

  2. aMannanAnsari commented on Jun 30, 2022

    @aMannanAnsari

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

  3. rudSarkar commented on Jul 19, 2022

    @rudSarkar

    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"
  4. HarshTambade commented on Aug 2, 2022

    @HarshTambade

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

  5. Sharifa26 commented on Sep 22, 2022

    @Sharifa26

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

    i also used this and it working

  6. Mayank-sudo commented on Sep 24, 2022

    @Mayank-sudo

    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.

  7. rudSarkar commented on Sep 24, 2022

    @rudSarkar

    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?

  8. Piyushg094 commented on Nov 2, 2022

    @Piyushg094

    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

  9. Mayank-sudo commented on Nov 2, 2022

    @Mayank-sudo

    am confused your data is not connecting or not establing

  10. Piyushg094 commented on Nov 2, 2022

    @Piyushg094

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

  11. Piyushg094 commented on Nov 2, 2022

    @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

  12. hardiii13 commented on Jan 15, 2023

    @hardiii13

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions