As part of Chapter 1: Getting Started - Ticket: Connecting to Atlas, I’ve added my connection string in the appsettings.json for the MongoUri value:
mongodb+srv://(username):(password)@mflix.yryjx.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
However, when running the TestReturnsOneMovie test, I receive the following error:
MongoDB.Driver.MongoAuthenticationException : Unable to authenticate using sasl protocol mechanism SCRAM-SHA-1.
----> MongoDB.Driver.MongoCommandException : Command saslContinue failed: bad auth : Authentication failed…
I’ve tried creating a brand new user and I got the same error. Any ideas why?