Ad Widget

Collapse

httptest.create JSON-RPC error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Fu
    Junior Member
    • Jul 2014
    • 5

    #1

    httptest.create JSON-RPC error

    Hi, avb
    I recently use httptest.create api, and get the error response below:
    ##
    {"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":
    "Web scenario step name cannot be empty."},"id":1}
    ##

    My request JSON Object below:
    ##
    {"jsonrpc":"2.0","method":"httptest.create","param s":{"name":"api_book","hostid":"1001000000010084", "steps":{"name":"api_book_rank","url":"xxxxxxxxxxx xx"
    ,"status_codes":200,"no":1}},"auth":"3625950d134b4 0bdc11d299b70754048","id":1}
    ##
    which is correct veritifed online and the same as official document example d
    escripbed, https://www.zabbix.com/documentation...ttptest/create

    Help!
  • Tony Fu
    Junior Member
    • Jul 2014
    • 5

    #2
    Parameter:steps is a array type in json

    I made s mistake, the Parameter steps is a array type in json even though conti
    ans one step only, presents with string '[]' not '{}'

    Comment

    Working...