[ZBX-20653] Invalid parameter \"/1/hosts/1\": an array is expected. Created: 2022 Feb 23 Updated: 2024 Apr 10 Resolved: 2022 Mar 30 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D) |
Affects Version/s: | 6.0.0 |
Fix Version/s: | 6.2 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | bunkzilla | Assignee: | Marina Generalova |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
centos |
Issue Links: |
|
||||
Team: | |||||
Story Points: | 0.1 |
Description |
Steps to reproduce:
Result: { "jsonrpc": "2.0", "error": { "code": -32602, "message": "Invalid params.", "data": "Invalid parameter \"/1/hosts/1\": an array is expected." }, "id": 1 }
|
Comments |
Comment by bunkzilla [ 2022 Feb 23 ] |
This zabbix install was created by upgrading a zabbix 3.4 install. Same payload works in zabbix 3.4. I'm stuck trying to figure out why I'm getting this error.
|
Comment by Andrey Tocko (Inactive) [ 2022 Feb 25 ] |
There is problem in documentation example. { "jsonrpc": "2.0", "method": "proxy.update", "params": { "proxyid": "10516", "hosts": [ { "hostid": "10517" } ] }, "auth": "{{zabbix_token}}", "id": 1 } |
Comment by bunkzilla [ 2022 Feb 25 ] |
Thank you. I've tested this in 6.0 and also 3.4 and it works. |
Comment by Marina Generalova [ 2022 Mar 14 ] |
Fixed example on the "proxy.update" page in 6.0 an 6.2 documentation. Diff:
|