hellosign / hellosign-python-sdk

A Python SDK for HelloSign's API
MIT License
29 stars 48 forks source link

Unhandled exception if HTTP response does not contain expected JSON data #84

Open mkgs opened 3 years ago

mkgs commented 3 years ago
File "/app/.heroku/src/hellosign-python-sdk/hellosign_sdk/utils/request.py" in _check_error
  261.                 raise err_cls("%s error: %s" % (response.status_code, json_response["error_description"]), response.status_code)

Exception Value: 'NoneType' object is not subscriptable

HTTP error responses which do not contain json data trigger the above scenario.

erosiec commented 3 years ago

Thank you for bringing this to our attention. I see a ticket for this issue was submitted to the API Support team, so I will be following up with you directly there. I will leave this issue open while we review the underlying cause of this error.

Internal reference: 11616711