Having Trouble Connecting to Database Cluster (Connection <monitor> Closed)

Hi.

I noticed that there are some similar topics, but I don’t think they’re similar enough so I went ahead and made this.

I used this URI to try to connect:

mongodb+srv://DragonOsman:<password>@cluster0.asbjy.mongodb.net/?retryWrites=true&w=majority

I used a browser-suggested strong password, but it doesn’t seem to have any problematic characters so I don’t think it’s the reason for my issue.

The error I have is copy-pasted here: mongodb-connect-error.txt (gist.github.com)

I was able to solve the issue by setting the allowed IP address (that I could use to connect) to the wildcard 0.0.0.0/0. So it really wasn’t because of the password.

Hi @Osman_Zakir

Prior to adding 0.0.0.0/0 to your Network Access List, were you able to connect at all? I.e. You were able to connect at one stage, then at some point no longer were able to connect before being able to connect only by adding 0.0.0.0/0 to your Network Access List.

Regards,
Jason

1 Like

No, I wasn’t able to connect at all.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.