VishnuAmit/LapProFix

Help Needed: MongoDB Atlas Connection Issues

Aberta

#34 aberto em 10 de out. de 2024

 (4 comentários) (0 reação) (0 responsável)TypeScript (17 forks)auto 404
Hacktoberfesthacktoberfest-acceptedhelp wanted

Métricas do repositório

Stars
 (2 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Hey everyone,

I need your help with an issue I'm facing while trying to connect to my MongoDB Atlas database. It worked fine previously, but now I’m getting the following errors:

  1. Connection Timeout: It seems like the connection attempt times out after 10 seconds, which is leading to the first error.

  2. IP Whitelist Issue: I keep receiving an error related to whitelisting. Although I’m adding my current IP address to the network access settings in MongoDB Atlas, I still can’t connect.

Background

  • I have only one system with a static IP address, yet this issue persists every time I attempt to connect.
  • I've double-checked the connection string in my .env file to ensure it’s correct.

Errors

I’ve attached screenshots of the console errors for reference.

Console Error Whitelist Error

If anyone has suggestions or knows how to resolve these issues, please comment below. Your help would be greatly appreciated!

Thanks!

Guia do colaborador