Running Application-Error: querySrv ENOTFOUND

Hi! I need some help with this error. The file is getting crashed Thank you!`
$npm start

Error: querySrv ENOTFOUND _mongodb._tcp.mflix-shard.mongodb.net

at QueryReqWrap.onresolve [as oncomplete] (dns.js:197:19)

[nodemon] app crashed - waiting for file changes before starting…

You can try this format in place after = sign of MFLIX_DB_URI in .env file as follow:

mongodb://m220student:m220password@mflix-shard-00-00-xxxxx.mongodb.net:27017,mflix-shard-00-01-xxxxx.mongodb.net:27017,mflix-shard-00-02-xxxxx.mongodb.net:27017/?replicaSet=&ssl=true&retryWrites=true

Hope this may help

@Gabriela_36859 I am having this same issue. Did you figure out what the issue is with this?

Hi @Gabriela_36859

Are you still having issues connecting ? Have you followed the steps in Chapter 1: Driver Setup - README in the section “Running the Application” and edited the dotenv_unix (if Unix or OS X) or dotenv_win (if Windows) to ensure your Atlas cluster SRV string has been added after Atlas SRV connection after the MFLIX_DB_URI in this file. Did you also install the NodeJS dependencies (npm install) before running npm start ?

This information will help understand exactly what issue you are having.

Kindest regards,
Eoin