RestAPIResponseException: Mismatch between endpoint and internal data format. . Crash report generated. Please submit

CMK version: 2.2.0p12
OS version: Virtual Appliance

Error message:

  "title": "Internal Server Error",
  "status": 500,
  "detail": "RestAPIResponseException: Mismatch between endpoint and internal data format. . Crash report generated. Please submit.",

We receive this error trying to fetch all hosts.

/check_mk/api/1.0/domain-types/host_config/collections/all?effective_attributes=false

The error occurs both in the gui and in requests executed with python. Other requests work without any problems.