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

Wrong URL in Discord media type

    XMLWordPrintable

    Details

    • Team:
      Team INT
    • Sprint:
      Sprint 65 (Jun 2020), Sprint 66 (Jul 2020), Sprint 67 (Aug 2020)
    • Story Points:
      0.25

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: