Unable to connect to mongodb atlas #27101
-
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! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @hasinireddybitla, could you point us to an example workflow run where this is happening so we can take a look? |
Beta Was this translation helpful? Give feedback.
-
Hi @thomasshaped, thanks for the reply. My error got resolved, its just whitelisting the ips in Mongodb Atlas. My bad, I missed on that. |
Beta Was this translation helpful? Give feedback.
-
Hi @hasinireddybitla can you please tell me how you wrote the steps in github action yml file to access mongodb remote atlas db? |
Beta Was this translation helpful? Give feedback.
Hi @thomasshaped, thanks for the reply. My error got resolved, its just whitelisting the ips in Mongodb Atlas. My bad, I missed on that.