Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLs mongodb+srv are not supported #15

Open
ilyaukin opened this issue Jun 10, 2021 · 0 comments
Open

URLs mongodb+srv are not supported #15

ilyaukin opened this issue Jun 10, 2021 · 0 comments

Comments

@ilyaukin
Copy link

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]
@ilyaukin ilyaukin changed the title URLs mongo+srv are not supported URLs mongodb+srv are not supported Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant