Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-9068

Script item error on parsing parameters if no parameters defined

XMLWordPrintable

      Steps to reproduce:

      1. Create Script item without parameters.
      2. Click "Test".

      Script item body:

      var input = JSON.parse(value);
      
      return JSON.stringify(input);
      

      Result:

      Cannot execute script: SyntaxError: invalid json (at offset 1)
      at [anon] (duktape.c:37568) internal
      at parse () native strict preventsyield
      at [anon] (function:1) preventsyield
      

      Expected:
      No errors. Empty string is returned.

            zabbix.dev Zabbix Development Team
            gcalenko Gregory Chalenko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: