CMK version: 2.1.0p44
OS version: debian 11
Error message: 500 Internal Server Error
Steps to reproduce:
Implement the requests example as per the documentation:
“https:///<site_name>/check_mk/openapi/#operation/cmk.gui.plugins.openapi.endpoints.host_group_config.create”
Make 1 change:
Original:
json={
'customer': 'provider',
'name': 'windows',
'alias': 'Windows Servers'
},
Changed:
json={
'customer': 'Provider',
'name': 'windows',
'alias': 'Windows Servers'
},
This is the only change needed to have the internal server error happen.
Even though the problem is triggered by providing the wrong data, i think the response should be a 404 and not a 500.
I’ve marked this as a bug.
I don’t know if later versions (>2.1.0p44) have this fixed, i did not find anything similar.
Note, the same problem happens in 2.1.0p43 as well, presumably earlier versions have the same issue, but i can’t test those.
I know this may not exactly be the correct place to post an issue where troubleshooting is already finished, but as google didn’t turn up anything relevant i thought it couldn’t harm to share.