Closed davidgrayston-paddle closed 2 weeks ago
Client._make_request
ApiError
AddressApiError
error_type
error_code
detail
docs_url
field_errors
field
error
requests.HTTPError
response
repr(api_error)
Relates to https://github.com/PaddleHQ/paddle-python-sdk/issues/10
We might need to bump the version + changelog entry 😄
Version and changelog now updated for 0.1.3
Fixed
Client._make_request
now raises anApiError
(or resolved sub class if implemented, e.g.AddressApiError
), which provides the following properties:error_type
error_code
detail
docs_url
field_errors
(list)field
error
ApiError
extendsrequests.HTTPError
and so also hasresponse
object available.Client._make_request
now logsrepr(api_error)
to provide more detail about the error.Relates to https://github.com/PaddleHQ/paddle-python-sdk/issues/10