Error while running the test script npm test -t db-connection

I need help to fix this specific error.

Hello,

So first question, did you rename your environment file to .env from say dotenv_win ?

If yes, is that .env file sitting in your mflix directory?

(Note - the .git folder will not be in your directory, I was using git during this course to improve my GIT/Pull Requests and Git Projects understanding)

Assuming that is ok. Does your connection string within .env for MFLIX_DB have your usename and password in it, and does it match the username and password you set up in Atlas (Assuming you are using Atlas).

2 Likes

Thank you very much. It was an authentication problem because I didn’t specify the password in the URI string properly.

3 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.