which steps, I tried all the steps mentioned above
You must be missing something, or doing something wrong.
Because followed the same steps and got the application running
This does not seem to be related to
babel-register, I would strongly recommend to create a new topic moving on for better support.
For this issue, please check the connection string in
.env file. Please share the contents if you are still getting the issue.
I know that it is not related to
babel-register ,I checked .env file also everything is looking fine , but i still getting this following erorr.
Could you share the contents of the
.env file. The error you get is usually synonymous with a bad connection string and not
Please change code in index.js back to
Actually I see the issue in your screenshot! You have not rename the file to
Please follow the instructions listed here
- Locate the file called dotenv_win or dotenv_unix (depending on your operating system) and replace the information within with your own srv connection string
- Rename dotenv_win or dotenv_unix to .env .
mv dotenv_unix .env # on Unix ren dotenv_win .env # on Windows
Plus please respect what the @Kanika has said and open a new post next time.
`# Ticket: Connection
Rename this file to .env after filling in your MFLIX_DB_URI and your SECRET_KEY
Do not surround the URI with quotes
Thank you @MANJESHA_34722
And just as @Kanika said your URI is incorrect. Ill show you my working version and you will see your error.
Notice that you have not completed your connection string with the actually host name, db or options.
Have you created your Atlas cluster? from Chapter 0
Ok visit the connect tab there near the left and you will find your connection string.
This is laid out in the course\s README.rst file. Where there are pretty picture to help.
Go to your cluster Overview -> Connect -> Connect Your Application.
Select the option corresponding to your local MongoDB version and copy the
Let me know if you are still facing the issue.
I followed as per README file, that problem is solved , but again i am getting one more error like bad authentication
Please check the username and password in
this is the one i copied to .env file
So you would have to change the
<password> part to the correct password. If you followed the steps it would be m220password