Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

catch request timeout Error and tell the user someting useful #299

Open
igable opened this issue Oct 22, 2015 · 0 comments
Open

catch request timeout Error and tell the user someting useful #299

igable opened this issue Oct 22, 2015 · 0 comments

Comments

@igable
Copy link
Contributor

igable commented Oct 22, 2015

dcm-list-servers -v
Traceback (most recent call last):
  File "/Users/igable/code/mixcoatl/bin/dcm-list-servers", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/Users/igable/code/mixcoatl/mixcoatl/bin/dcm-list-servers", line 54, in <module>
    results = Server.all(region_id=cmd_args.region)
  File "/Users/igable/code/mixcoatl/mixcoatl/mixcoatl/infrastructure/server.py", line 585, in all
    x = r.get(params=params)
  File "/Users/igable/code/mixcoatl/mixcoatl/mixcoatl/resource.py", line 565, in get
    return self.__doreq('GET', **kwargs)
  File "/Users/igable/code/mixcoatl/mixcoatl/mixcoatl/resource.py", line 474, in __doreq
    method, url, headers=headers, verify=ssl_verify, **kwargs)
  File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/Users/igable/code/mixcoatl/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/adapters.py", line 415, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(60, 'Operation timed out'))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant