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

ConnectionError handling #63

Closed
vogxn opened this issue Aug 22, 2014 · 3 comments
Closed

ConnectionError handling #63

vogxn opened this issue Aug 22, 2014 · 3 comments

Comments

@vogxn
Copy link

vogxn commented Aug 22, 2014

The requests library used underneath QDS_SDK needs to handle ConnectionErrors better. These pop up when we poll aggressively on the endpoint and a connection is refused.

@rohitagarwal003
Copy link
Contributor

Can you also attach the stack trace etc.

@vogxn
Copy link
Author

vogxn commented Aug 22, 2014

        except MaxRetryError as e:
>           raise ConnectionError(e, request=request)
E           ConnectionError: HTTPSConnectionPool(host='qa.qubole.net', port=443): Max retries exceeded with url: /api/v1.2/clusters/yzdy3/state (Caused by <class 'httplib.BadStatusLine'>: )

87/lib/python2.6/site-packages/requests-2.3.0-py2.6.egg/requests/adapters.py:375: ConnectionError

@rohitagarwal003
Copy link
Contributor

This is a duplicate of #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants