Highlighted
Micro Focus Expert
Micro Focus Expert
160 views

OBM Downtime API - is there a HTTP Post max request body size?

Jump to solution

Is there a maximum character / size for the request body to the OBM downtime API?

https://docs.microfocus.com/itom/Operations_Manager_i:10.63/OMi/ExtGuide/Web_Services/Downtime_REST_Service

It seems when we insert 20+ CIs in the request body, it resolves fine. However after we put around 50 CIs in the request body, OBM api replies with a HTTP 500 code, internal error.

We have not been able to find anything meaningful in the logs, but suspect some maximum size issue here.

UPDATE:

We did find an error log entry:

2020-02-21 14:34:00,891 [ajp-/127.0.0.1:8009-1] (DowntimesResource.java:155) ERROR - Failed to create downtime for customer 1: Failed to add downtime for customer ID 1 -- Error while committing the transaction -- org.hibernate.exception.DataException: could not insert: [com.hp.bsm.platform.dt.server.dal.DTDowntimeConfMO] -- could not insert: [com.hp.bsm.platform.dt.server.dal.DTDowntimeConfMO] -- [Mercury][SQLServer JDBC Driver][SQLServer]String or binary data would be truncated.

 

Anybody got any insights?

Labels (4)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Fixed, truncating the text strings we insert in the API payload to the OBM downtime description and name fields resolved the issue.

View solution in original post

Tags (1)
0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

Fixed, truncating the text strings we insert in the API payload to the OBM downtime description and name fields resolved the issue.

View solution in original post

Tags (1)
0 Likes
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.