This may be due to you didnt remove those <> brackets in the connection string replace the username , password with the actual credentials , not the account password , but with database access password , and then remove those <> brackets
Finally it will look like mongodb+srv://db_username:db_password