Trying to download an agent with the API (tested with the interactive GUI and with the examples provided at the API documentation) result in the following error:
{
"title": "Internal Server Error",
"status": 500,
"detail": "'str' object has no attribute 'items'",
"crash_id": "4c47eb7e-259e-11ec-96f8-005056a1b915",
"crash_report": {
"href": "http://<my checkmk master>/master/check_mk/crash.py?crash_id=4c47eb7e-259e-11ec-96f8-005056a1b915&site=master",
"method": "get",
"rel": "cmk/crash-report",
"type": "text/html"
},
"stack_trace": [
"Traceback (most recent call last):",
" File \"/omd/sites/master/lib/python3/cmk/gui/wsgi/applications/rest_api.py\", line 403, in _wsgi_app",
" return wsgi_app(environ, start_response)",
" File \"/omd/sites/master/lib/python3/cmk/gui/wsgi/applications/rest_api.py\", line 207, in __call__",
" wsgi_app = self.func(ParameterDict(path_args))",
" File \"/omd/sites/master/lib/python3/cmk/gui/plugins/openapi/restful_objects/decorators.py\", line 535, in _validating_wrapper",
" response = self.func(param)",
" File \"/omd/sites/master/lib/python3/cmk/gui/cee/plugins/openapi/endpoints/agent.py\", line 353, in show_agent_information",
" config_rules = get_agent_config_rules(agent_hash)",
" File \"/omd/sites/master/lib/python3/cmk/gui/cee/plugins/wato/agent_bakery/misc.py\", line 155, in get_agent_config_rules",
" for key, value in conf.items():",
"AttributeError: 'str' object has no attribute 'items'",
""
]
}
Any hint what’s wrong here?