Lecture 1 I have a cluster now and I can’t connect I don’t have a Short SRV connection option
Have you setup the
.env file correctly? Can you share a screenshot of it? And does this post help?
The Connection string showing here is the short srv string only which is mentioned in the course. Please use the same (after replacing password) in
.env file and let me know if you have any issues.
Rename this file to .env after filling in your MFLIX_DB_URI and your SECRET_KEY
Do not surround the URI with quotes
Thats the one i have saved as .env, the connection string I get from connect my application is “mongodb+srv://m220student:@mflix-houak.mongodb.net/test?retryWrites=true&w=majority”
Right now after npm install and npm start im crashing because of a ‘Cannot read property ‘split’ of null’ error (uri_parser.js:40:23)
the connection string im using now is “mongodb+srv://m220student:firstname.lastname@example.org”
still getting the error I just posted
directory is desktop(…)\mongodb\mflix-js if that affects anything
Your .env file is a bit off.
Let me know
And I have tried to connect but received an error about whitelisting of the IP. Have you done this step?
In Atlas on the left you will see a Network Access tab