Alation / Allie-SDK

A Python library for the Alation REST APIs.
https://alation.github.io/Allie-SDK/
Apache License 2.0
9 stars 2 forks source link

Provide additional error insights #31

Open diethard-at-alation opened 2 months ago

diethard-at-alation commented 2 months ago

Currently we log this out in case of an error:

ERROR MESSAGE: Error submitting the PUT Request to: //integration/v2/custom_field_value/async/
ERROR CODE: 400000
ERROR TITLE: Invalid Payload
ERROR DETAIL: Please check the API documentation for more details on the spec.

In example the custom field value async endpoint provides more error insight, which would be useful to expose:

'{"title":"Invalid Payload","detail":"Please check the API documentation for more details on the spec.","errors":[{"non_field_errors":["No support for updating `description` field for `data`."]}],"code":"400000"}'