Werk #13932: non JSON 500 page in REST API

Component REST API
Title non JSON 500 page in REST API
Date Jun 21, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In some error cases, a non-JSON result page was returned by the REST API. This led to problems with script execution as the page was not valid JSON and thus the parsers threw errors.

The errors which led to the non-JSON result will now be returned as a JSON result and a log entry will be made.

To the list of all Werks