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

Telegram MediaType fail

XMLWordPrintable

    • Documentation backlog
    • 1

      **

      Hello Zabbix Support Team,

      I'm currently testing Telegram integration using the webhook method in Zabbix 7.4.0beta1, and I'm encountering some issues that I couldn't resolve with the current documentation.

      The issues are as follows:

      1. Invalid JSON Error: When using the macro {{ {EVENT.TAGSJSON}}} in the message template, I receive the following error during the test:
         
         
        Sending failed: Webhook processing failed: Value "event_tags" contains invalid JSON.
        However, if I replace {{{EVENT.TAGSJSON}

        }} with a hardcoded value like [\{"tag":"test","value":"test"}], the test succeeds, and the message is delivered to Telegram.

      1. Unauthorized Error: Before that, I also faced:
         

      {{

      {"ok":false,"error_code":401,"description":"Unauthorized"}

      }}
      I corrected the bot token and confirmed it's working, as I can send messages using hardcoded values.

      Steps to reproduce:

      1. Changes in configuration...
      2. Navigate to screen title...
      3. Click on screen element...
      4. ...

      Result:
      See screenshot...
      See log file...
      See memory dump...
      Expected:
      See screenshot....
      See attached patch file...

            mgeneralova Marina Generalova
            sstruta sergiu
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: