[ZBX-17981] Wrong URL in Discord media type Created: 2020 Jun 28 Updated: 2024 Apr 10 Resolved: 2020 Aug 30 | 
    |
| Status: | Closed | 
| Project: | ZABBIX BUGS AND ISSUES | 
| Component/s: | Templates (T) | 
| Affects Version/s: | 5.0.0, 5.0.1 | 
| Fix Version/s: | 5.0.4rc1, 5.2.0alpha2, 5.2 (plan) | 
| Type: | Problem report | Priority: | Trivial | 
| Reporter: | Brian van Baekel | Assignee: | Vjaceslavs Bogdanovs | 
| Resolution: | Fixed | Votes: | 3 | 
| Labels: | discord | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Team: | |
| 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. 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  | 
    
| Comments | 
| Comment by Joao Jose Salgado Serra [ 2020 Jul 26 ] | 
| 
             is this why im getting the "Api wrong version" error?  | 
| Comment by Tikhon Uskov (Inactive) [ 2020 Jul 27 ] | 
| 
             navyseai yes. If you want to fix it yourself, see changes in this commit. 
  | 
| Comment by Stuardo Rodríguez [ 2020 Aug 01 ] | 
| 
             Doesn't make sense. "My" webhook is: https://discordapp.com/api/webhooks/734..../dqI.... 
 it does contain the "app" in the URL.  | 
| Comment by Joao Jose Salgado Serra [ 2020 Aug 02 ] | 
| 
             i was unable to access your commit @Tikhon Uskov  | 
| Comment by Vjaceslavs Bogdanovs [ 2020 Aug 26 ] | 
| 
             Available in: 
  |