pd4d10 / unpub

Self-hosted private Dart Pub server for Enterprise

Home Page:https://pub.dev/packages/unpub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoDB connection string with authentication doesn't work

sdebruyn opened this issue · comments

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?

I think it's probably fixed with the latest v2.0.0.