ConnectionError handling
vogxn opened this issue · 3 comments
vogxn commented
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 commented
Can you also attach the stack trace etc.
vogxn commented
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 commented
This is a duplicate of #9