[ZBX-23119] Mattermost webhook fails with "SyntaxError: invalid json (at offset 2)" Created: 2023 Jul 18  Updated: 2025 Jul 08  Resolved: 2025 Jul 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Iva Peneva Assignee: Denis Rasikhov (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: Mattermost, templates
Remaining Estimate: Not Specified
Time Spent: 4h
Original Estimate: Not Specified
Environment:

Debian 11
Zabbix Server 6.4.0


Attachments: JPEG File Error-log.jpg     JPEG File Error-web.jpg     File media_mattermost.yaml    

 Description   

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.



 Comments   
Comment by Iva Peneva [ 2023 Sep 14 ]

Will this issue be fixed in the latest release?

Comment by Denis Rasikhov (Inactive) [ 2025 Jun 30 ]

Hello ivapeneva! Is the issue still relevant on supported Zabbix versions? I've tested it in on Zabbix 7.0.16 and Mattermost 10.9.1 and it works just fine.

Generated at Sun Aug 31 05:38:50 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.