MongoDB connection string with authentication doesn't work
sdebruyn opened this issue · comments
Sam Debruyn commented
I tried using this package and supplied a connection string that includes my username and password.
E.g.: mongodb+srv://myusername:mypassword@hostname.azure.mongodb.net/test?retryWrites=true&w=majority
I got an error saying that the port is not valid (where my password was interpreted as the port). How should I format my connection string and supply my credentials?
Rongjian Zhang commented
Seems related to mongo-dart/mongo_dart#137
Rongjian Zhang commented
I think it's probably fixed with the latest v2.0.0.