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

connecting to MongoDB Atlas, #14917

Open
2 tasks done
Joshua-alt opened this issue Sep 30, 2024 · 2 comments
Open
2 tasks done

connecting to MongoDB Atlas, #14917

Joshua-alt opened this issue Sep 30, 2024 · 2 comments

Comments

@Joshua-alt
Copy link

Joshua-alt commented Sep 30, 2024

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Mongoose version

8

Node.js version

18.14.1

MongoDB server version

MongoDB Atlas

Typescript version (if applicable)

No response

Description

I’m encountering a problem connecting to MongoDB Atlas, even though I’ve allowed network access for everyone by adding ‘0.0.0.0/0’ to the IP whitelist using mongoose v8

Steps to Reproduce

to get issue that i show in description can be done by install mongoose 8v then connect it with mongodb atlas
and to fixe required to back on "mongoose": "^7.3.2" version that for me is working fine

Expected Behavior

I’m encountering a problem connecting to MongoDB Atlas, even though I’ve allowed network access for everyone by adding ‘0.0.0.0/0’ to the IP whitelist. When attempting to connect, I consistently receive the following error message: ‘MongooseServerSelectionError: 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

@akang
Copy link

akang commented Oct 1, 2024

I am facing the same issue.

For me:

Breaks on version 8.7.0
Works on 8.5.2

@mtrplx
Copy link

mtrplx commented Oct 1, 2024

worked for me too!! thank u very much i was going INSANE

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

3 participants