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

support for mongodb+srv:// URIs #114

Open
stenczelt opened this issue Jun 13, 2024 · 1 comment
Open

support for mongodb+srv:// URIs #114

stenczelt opened this issue Jun 13, 2024 · 1 comment

Comments

@stenczelt
Copy link
Member

Logging in to a MongoDB cluster with mongodb+srv:// is not possible, the URI is not recognised.

Traceback (most recent call last):
  File "/root/venv/bin/abcd", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/venv/lib/python3.11/site-packages/abcd/frontends/commandline/parser.py", line 121, in main
    callback_func(**kwargs)
  File "/root/venv/lib/python3.11/site-packages/abcd/frontends/commandline/decorators.py", line 15, in wrapper
    func(*args, config=config, **kwargs)
  File "/root/venv/lib/python3.11/site-packages/abcd/frontends/commandline/commands.py", line 17, in login
    db = ABCD.from_url(url=url)
         ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/venv/lib/python3.11/site-packages/abcd/__init__.py", line 47, in from_url
    raise NotImplementedError('Unable to recognise the type of connection. (url: {})'.format(url))
NotImplementedError: Unable to recognise the type of connection. (url: mongodb+srv://***)

Expected behaviour

Operate the same way as with mongodb:// and use uri-mode for the connection, i.e. not saving the credentials individually but simply use the URI.

@ElliottKasoar
Copy link
Contributor

@stenczelt, I can't close this, but it should have been resolved by #115.

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

2 participants