diskuto
diskuto copied to clipboard
URLs `mongodb+srv` are not supported
When creating new MongoDBCommentStore(settings.databaseURL) with URL like mongodb+srv://<login>:<pass>@cluster0.w7o97.mongodb.net/vibelog?retryWrites=true&w=majority
got the following error
object.Exception@root/.dub/packages/diskuto-1.7.1/diskuto/source/diskuto/commentstores/mongodb.d(22): Failed to parse MongoDB URL.
----------------
/dlang/dmd-2.096.1/linux/bin64/../../src/phobos/std/exception.d:516 pure @safe void std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, scope const(char)[]) [0x55ba9c1627d6]
/dlang/dmd-2.096.1/linux/bin64/../../src/phobos/std/exception.d:437 pure @safe bool std.exception.enforce!().enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x55ba9c162752]
root/.dub/packages/diskuto-1.7.1/diskuto/source/diskuto/commentstores/mongodb.d:22 @trusted diskuto.commentstores.mongodb.MongoDBCommentStore diskuto.commentstores.mongodb.MongoDBCommentStore.__ctor(immutable(char)[]) [0x55ba9c207787]