Repository navigation
fix(alerts): a blank webhook URL, ping or label is not set - #59
Open
MorningLightMountain713 wants to merge 1 commit into
Open
MorningLightMountain713 wants to merge 1 commit into
MorningLightMountain713 wants to merge 1 commit into
Conversation
A webhook URL, ping or label that is missing, '' or '0' is not set: no Discord alert is attempted without a webhook URL, and no Name field is sent without a label, since Discord refuses an embed field with an empty value. The startup log reports Telegram alerts as enabled only when telegram_alert is 1, the value that sends them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cabecinha84
approved these changes
Nov 27, 2026
Cabecinha84
left a comment
Member
There was a problem hiding this comment.
ACK. Tests pass (70/70), merges cleanly with master. Non-blocking: a blank telegram_bot_token or telegram_chat_id with telegram_alert 1 still fails at send time (only logged); could be a follow-up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A node whose
config.jshasweb_hook_url: ''tried to send every Discord alert to an empty URL. Each attempt failed withOnly absolute URLs are supported, after up to ~40 s of public-IP lookups. Alabel: ''put an emptyName:field on every Discord embed, which Discord refuses, so every alert from that node failed.isSet(alerts.js): an optional alert setting that is missing,''or'0'is not set.web_hook_url: no Discord alert is attempted unless it is set, and the startup log saysDiscord alert: disabled.label: the DiscordName:field and the TelegramName:line appear only when it is set.ping: mentioned only when set; the startup log agrees.telegram_alert: the startup log reports Telegram alerts as enabled only when it is1, the value that sends them.Tests
test/alerts.test.js:undefined,''and'0'are not set; a URL, a user id and a name are. Dropping the''or the'0'case fails it.npm test, ESLint and Prettier pass in CI.🤖 Generated with Claude Code