-
Notifications
You must be signed in to change notification settings - Fork 377
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
client object instantiates with a bad url #18
Comments
How would you propose to validate the URL? I'd like to avoid doing an HTTP request in |
My initial idea was to make a request. If not a request then we could do smth with urlparse + regex. It's not easy without resorting to a HTTP request. The other issue is b/c the object can be instantiated, calling something like I agree it's not pretty to do it within |
If it is hanging indefinitely, that is an issue. Have you experienced this? requests should eventually timeout. |
I'm going to go ahead and close this. Please feel free to reopen if this problem still affects you! |
With hvac 0.2.3 on OSX
Currently, passing in a bad url doesn't throw any error or exception
Doing:
client = hvac.Client(url='http:https://234.244.22.2:8200', token='sometoken')
Successfully creates the client object. I think it should probably be validated in
__init__
and throw a ConnectionError exception.I'll get around to submitting a PR sometime this week if you agree with me.
The text was updated successfully, but these errors were encountered: