Skip to content

URLs mongodb+srv are not supported #15

@ilyaukin

Description

@ilyaukin

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions