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

URL without scheme raises uncaught MissingSchema exception #339

Open
pederhan opened this issue Nov 21, 2024 · 0 comments
Open

URL without scheme raises uncaught MissingSchema exception #339

pederhan opened this issue Nov 21, 2024 · 0 comments

Comments

@pederhan
Copy link
Member

[pederhan@auspex ~]$ mreg-cli --url example.com
Traceback (most recent call last):
  File "run.py", line 21, in <module>
  File "mreg_cli/main.py", line 150, in main
  File "mreg_cli/utilities/api.py", line 117, in try_token_or_login
  File "requests/sessions.py", line 602, in get
  File "requests/sessions.py", line 575, in request
  File "requests/sessions.py", line 484, in prepare_request
  File "requests/models.py", line 367, in prepare
  File "requests/models.py", line 438, in prepare_url
requests.exceptions.MissingSchema: Invalid URL '/api/v1/hosts/': No scheme supplied. Perhaps you meant https:///api/v1/hosts/?
@pederhan pederhan changed the title URL without scheme raises uncaught error URL without scheme raises uncaught MissingSchema exception Nov 21, 2024
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