/check_mk/api/1.0/domain-types/folder_config/collections/all throws a HTTP 500 error

Thank you for testing, Andreas. I updated to 2.0.0b3 yesterday, hoping for improvement. Unfortunately I am still getting the same error.
We currently have 9 folders under the main folder. If I do the following:

curl -X GET "https://checkmk.contoso.com/prod/check_mk/api/1.0/objects/folder_config/~"

I do actually get a response, although I’m not sure if it is the desired one:

// 20210420161842
// https://checkmk.contoso.com/prod/check_mk/api/1.0/objects/folder_config/~

{
  "domainType": "folder_config",
  "id": "~",
  "title": "Main directory",
  "links": [
    {
      "rel": "self",
      "href": "http://checkmk.contoso.com/prod/check_mk/api/1.0/objects/folder_config/~",
      "method": "GET",
      "type": "application/json",
      "domainType": "link"
    },
    {
      "rel": "urn:org.restfulobjects:rels/update",
      "href": "http://checkmk.contoso.com/prod/check_mk/api/1.0/objects/folder_config/~",
      "method": "PUT",
      "type": "application/json",
      "domainType": "link"
    },
    {
      "rel": "urn:org.restfulobjects:rels/delete",
      "href": "http://checkmk.contoso.com/prod/check_mk/api/1.0/objects/folder_config/~",
      "method": "DELETE",
      "type": "application/json",
      "domainType": "link"
    }
  ],
  "members": {
    
  },
  "extensions": {
    "attributes": {
      "meta_data": {
        "created_at": 1615285850.440637,
        "created_by": null,
        "updated_at": 1618863615.8612008
      },
      "site": "prod",
      "tag_agent": "cmk-agent"
    }
  }
}

Like I said, we have nine folders below the main directory. But none of them are shown…

You talk about folders without an id. Is there anyway to verify and fix this issues?

Cheers!