[ZBX-25153] Misleading API error message with host.get Created: 2024 Sep 02 Updated: 2025 Jul 30 |
|
Status: | READY TO DEVELOP |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 7.0.3 |
Fix Version/s: | 8.0.0alpha1 (master) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Pascal Uhlmann | Assignee: | Deniels Pankins |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||
Team: | |||||||||
Sprint: | S25-W4/5, S25-W6/7, S25-W12/13, S25-W28/29, S25-W32/33 | ||||||||
Story Points: | 1 |
Description |
When using the API method host.get and there is an error regarding some parameter (for example "selectGroups") the following error message is returned:
But as you can see in the request data there's no parameter "output": { "jsonrpc": "2.0", "method": "host.get", "params": { "filter": { "hostid": [ "10336" ] }, "selectGroups": "groupid" }, "id": 5 } In fact the error is an invalid value for the parameter "selectGroups". This is misleading and makes it hard to find the cause for such an error. Therefore this should be fixed so that the error messages really tell what's wrong. At least they shouldn't mention a wrong cause. |
Comments |
Comment by dimir [ 2024 Sep 03 ] |
Thank you for the report pu, the ticket has been assigned to a team. |