Error when filtering by host group name in history-eventoverview

hello, group the hosts by companies according to how it appears in the documentation, editing the hosts.conf and groups.conf file. The grouping works correctly, but when I want to filter the groups by hostname in section history-eventoverview, gorup to show me the info in json it appears following error:

Does anyone know why this happens and how to solve it?

What does your filter/search look like? (You can redact sensitive info, like company names, etc…)