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: Operation game_loops.findOne() buffering timed out after 10000ms #2

Open
Sanityfrog502 opened this issue Sep 14, 2022 · 3 comments

Comments

@Sanityfrog502
Copy link

it wont stop giving me this error: MongooseError: Operation game_loops.findOne() buffering timed out after 10000ms
it happens when i run npm start on backend

@wbrandon25
Copy link
Owner

Where are you hosting your MongoDB server? Make sure you put the proper link to connect to it in the environment variables.

@KentuckyFriend
Copy link

Im also having this problem. Im hosting on MongoDB Atlas any my connect part in server.js in backend looks like this

mongoose.connect(
  "mongodb+srv://USER:PASS@cluster0.s67pyg1.mongodb.net/?retryWrites=true&w=majority",
  {
    useNewUrlParser: true,
    useUnifiedTopology: true,
  },
);

so I think it shouldn't be about proper link. I didn't use env variable because MONGOOSE_DB_LINK variable in connect gave me errors but replacing it with actual link didn't give any error.

@digbee42
Copy link

Having this issue as well, did the same code as KentuckyFriend.

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

4 participants