-
Notifications
You must be signed in to change notification settings - Fork 621
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
mongodb is not connecting #7
Comments
please share some details |
|
"Not connecting" is not enough. Do you have any errors in the console? Did you get any output at all? |
Are you whitelisted the current IP address? |
I have the same Problem. I can connect to MongoDB with compass (same user, same password, same host machine, with the same IP). But it's not possible to connect with the server.js: const uri = process.env.ATLAS_URI; ATLAS_URI is filled in .env file in the same directory as server.js ATLAS_URI=mongodb+srv://-----:[email protected]/test?retryWrites=true&w=majority Of course with the same user name and passwort as in compass. I get the following messages: I whitelisted my WAN IP and any IP: 0.0.0.0/0 (includes your current IP address) I realy want to learn with this tutorial, but I'm a little bit frustrated. Can anyone help? |
|
I had similar issue, I installed mongodb in my system (ubuntu) using sudo apt-get install mongodb above two solutions worked form me. |
No description provided.
The text was updated successfully, but these errors were encountered: