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

Mattermost webhook fails with "SyntaxError: invalid json (at offset 2)"

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Templates (T)
    • Debian 11
      Zabbix Server 6.4.0

      Steps to reproduce:

      1. Import Mattermost Media Type for Zabbix Server 6.4 from official git repository (See attached .yaml file)
      2. Configure Media type to send alerts to Mattermost
      3. See Zabbix Web interface for error (attached image)
      4. See logs at debug level 4 (attached image)

      Result:
      Mattermost notification fails with message: SyntaxError: invalid json (at offset 2)
      Expected:
      It is expected to send the alerts successfully since the configuration worked correctly on Zabbix Server 4.x. After reimporting the template for the new version it still throws an error.

        1. Error-log.jpg
          Error-log.jpg
          150 kB
        2. Error-web.jpg
          Error-web.jpg
          31 kB
        3. media_mattermost.yaml
          26 kB

            zit Zabbix Integration Team
            ivapeneva Iva Peneva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: