Improve REST-API error handling

Idea ID 2805401

Improve REST-API error handling

The API is great however, error handling could be improved with the REST-API to provide developers with better troubleshooting diagnostics. For example

Create CIs with https://docs.microfocus.com/UCMDB/2019.02/ucmdb-docs/docs/eng/APIs/UCMDB_RestAPI/index.html#create the API will fail with random errors such as:

error 500 {"error" : "The following error has occurred: empty String. Please consult logs for more details"}

There is no mention of which CI record failed, or which attribute failed. It would be good if the response included number of failed CIs or problematic attributes. Troubleshooting errors in thousands of records is problematic and the log is not much better.

2 Comments
Micro Focus Expert
Micro Focus Expert
Thank you for sharing your idea! It’s open for comments and kudos, and we’re looking forward to input from the community. Once there is enough community traction, it will be further reviewed by the product team. 
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.