Chapter 1 Connection Test Failure

I have whitelisted the IP & setup the connection string in properties file.
I am getting following error for Connections Test

[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 5.527 s <<< FAILURE! - in mflix.api.daos.ConnectionTest
[ERROR] testMoviesCount(mflix.api.daos.ConnectionTest) Time elapsed: 0.415 s <<< ERROR!
com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName=‘m200student’, source=‘admin’, password=, mechanismProperties={}}
at mflix.api.daos.ConnectionTest.testMoviesCount(
Caused by: com.mongodb.MongoCommandException: Command failed with error 8000 (AtlasError): ‘bad auth Authentication failed.’ on server The full response is { “ok” : 0, “errmsg” : “bad auth Authentication failed.”, “code” : 8000, “codeName” : “AtlasError” }
at mflix.api.daos.ConnectionTest.testMoviesCount(

The problem will come if you try to open the project with eclipse instead of IntelliJ

Hi @chaitanyas,

Thanks for notifying this. Allow me some time to validate this one and I will get back to you.



I have the same problem (using netbeans 12.1)