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

Fail when bad host uri is used #3

Open
fuzzball81 opened this issue Jul 16, 2018 · 0 comments
Open

Fail when bad host uri is used #3

fuzzball81 opened this issue Jul 16, 2018 · 0 comments

Comments

@fuzzball81
Copy link

fuzzball81 commented Jul 16, 2018

As a user I would like api calls to fail with an exception if an dlrn instance can't be reached. Currently when an api request is made to a bad host uri or when their is not a dlrn instance to contact, the request will just keep timing out every 30 seconds instead of failing with an exception that can be handled.

Example:

params = dlrnapi_client.Params()
client = dlrnapi_client.ApiClient(host='https://bad-server.org/api-centos-bad')                                                                                                                 
api_instance = dlrnapi_client.DefaultApi(api_client=client)
data = api_instance.api_last_tested_repo_get(params)
@fuzzball81 fuzzball81 changed the title Fail when bad host uri is use Fail when bad host uri is used Jul 16, 2018
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