aetaric / aetaric/checkrr

[BUG] Discord Webhook does not match expected format"

Offen
#155 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Go
Sterne
578
Forks
17
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Describe the bug**
Discord webhook does not match the expected format

**To Reproduce**
Steps to reproduce the behavior:
1. Go to config.yaml
notifications:
discord:
url: "https://discordapp.com/api/webhooks/{YourDiscord}" # [or url: "https://discord.com/api/webhooks/{YourDiscord}"]
notificationtypes:
- reacquire
- unknowndetected
- startrun
- endrun
2. run Checkrr

**Expected behavior**
Expect to send a Discord notification upon trigger

- OS: Docker container
- checkrr Version: 3.6.1

**Additional context**
time="level=warning msg="Webhook does not match expected format" Discord Connected=false Startup=true".

Proposed change:
regex.FindStringSubmatch(d.URL)
if matches != nil {
if len(matches) == 3 {

--> len(matches) == 3 to len(matches) == 4

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.