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

Wrong URL in Discord media type

XMLWordPrintable

    • Sprint 65 (Jun 2020), Sprint 66 (Jul 2020), Sprint 67 (Aug 2020)
    • 0.25

      The discord mediatype is validating the wrong url.
      URL of webhook: https://discord.com/api/webhooks/........
      Mediatype only accepts: https://discordapp.com/api/webhooks

      Go to Administration -> Media types and find your discord mediatype. Open it, and next open the "script" part (almost at the bottom of the page)

      Find line 23, it should look like:

      else if (!params.discord_endpoint.startsWith('https://discordapp.com/api/webhooks')) {

      Change it into:

      else if (!params.discord_endpoint.startsWith('https://discord.com/api/webhooks')) {

      Remove the 'app' from the URL, and the problem is solved

            vjaceslavs Vjaceslavs Bogdanovs
            brian.baekel Brian van Baekel
            Team INT
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: