Ticket: Migration Unauthorizised User

I check both the URI = “mongodb+srv://m200student:m200password@mflix-oclrd.mongodb.net/test?retryWrites=true&w=majority”
& database name as sample_mflix however i am still getting
Unauthorization. The log says invalid bearer token

Hi @chaitanyas,

Please make sure you have updated the URI (variable: mongoUri on line 97) in Migrator.java file.


Yes i had tired that but still getting error

String mongoUri = “mongodb+srv://m200student:m200password@mflix-oclrd.mongodb.net/test?retryWrites=true&w=majority”;

I realized that database name needs to be updated in the test file too.
The connection issue is resolved