Unable to connect to mongodb atlas

Unable to connect to mongodb atlas while running the ‘npm test’ through GitHub Actions.

Error: MongoNetworkError: failed to connect to server on first connect.

Any help is much appreciated. Thanks in advance!

Hi @hasinireddybitla, could you point us to an example workflow run where this is happening so we can take a look?

Hi @thomasshaped, thanks for the reply. My error got resolved, its just whitelisting the ips in Mongodb Atlas. My bad, I missed on that.

1 Like

Hi @hasinireddybitla can you please tell me how you wrote the steps in github action yml file to access mongodb remote atlas db?