VishnuAmit/LapProFix

Help Needed: MongoDB Atlas Connection Issues

Aperta

#34 aperta il 10 ott 2024

 (4 commenti) (0 reazioni) (0 assegnatari)TypeScript (17 fork)auto 404
Hacktoberfesthacktoberfest-acceptedhelp wanted

Metriche repository

Star
 (2 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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!

Guida contributor