Closed reckart closed 3 years ago
Is your feature request related to a problem? Please describe. When I create the client with the wrong URL, there can be cryptic error messages like:
__request(self, method, endpoint, **kwargs) 520 raw_response = self._run_request(method, endpoint, **kwargs) 521 --> 522 response = raw_response.json() 523 self.__handle_error(response) 524 return response
These indicate that the server responds but does not provide JSON.
Describe the solution you'd like When the server does not return JSON, a more sensible error message should be generated
Additional context Was part of https://github.com/averbis/averbis-python-api/issues/53
Should be treated in #60 .
Is your feature request related to a problem? Please describe. When I create the client with the wrong URL, there can be cryptic error messages like:
These indicate that the server responds but does not provide JSON.
Describe the solution you'd like When the server does not return JSON, a more sensible error message should be generated
Additional context Was part of https://github.com/averbis/averbis-python-api/issues/53