qubole/qds-sdk-py

ConnectionError handling

vogxn opened this issue · 3 comments

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.

Can you also attach the stack trace etc.

        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

This is a duplicate of #9