MongoDB Atlas bad auth connection failed

I’m getting a bad connection error to my MongoDB Atlas cluster, and I’ve already double checked the following:

  • Password and username in the correct order
  • Password and username match what I have in Database Access
  • Network Connections are open to all IP

This is for a newish (launched in the past hour?) cluster so maybe that’s the problem, but I’ve able to manually add documents through Atlas so I doubt it.

I’ve tried connecting through Node app and shell and neither work. What am I missing/where else should I look?

I fixed it by updating the password on my connection account to be something just random and different, and then it worked? Not sure why - I wasn’t using special characters before, had no typos with the password, and no other clear differences, but this did work.