Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10880

JSON-RPC batch aren't working anymore in 3.0

XMLWordPrintable

      JSON-RPC support request batching (6. Batch in the specification) and we were using it with Zabbix 2 (2.0.3 exactly) without problems. Since we upgrated to 3.0.3 zabbix returns JSON-rpc version is not specified when we send them.

      I didn't see any notes about this behavior in Zabbix documentation, and batching doesn't seem optional in the JSON-RPC specification, did I miss something ?

      Request:

      [
        {
          "jsonrpc":"2.0",
          "method":"trigger.get",
          "auth":"...",
          "params":
          {
              "output":"extend",
              "expandData":true,
              "expandDescription":true,
              "preservekeys":true,
              "filter":{"triggerid":[]}},
              "id":0
          }
      ]
      

      Response:

      {
        "jsonrpc": "2.0",
        "error": {
          "code": -32600,
          "message": "Invalid Request.",
          "data": "JSON-rpc version is not specified."
        },
        "id": null
      }
      

            Unassigned Unassigned
            jroncagl Julien Roncaglia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: