Repository navigation
fix: keep big alerts under ntfy's limit, and give email a deadline - #21
Merged
Merged
Conversation
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.
Category
Bugfix
Overview
An n8n that's a few months behind is caught by 171 advisories at once, and listing every one of them made an alert ntfy wouldn't take. A default install turns down anything from 4 KB up (400 "attachments not allowed", or 413 once it's big enough), so nothing arrived and Patchcall sent the same refused alert again on every check. Alerts stop at about 3 KB now and end with "And 142 more on the page.", while the webhook still gets the full list.
A topic URL ending in a slash, like
https://ntfy.sh/my-topic/, posted to the topic itself, so ntfy published the raw JSON with no title and--test-notifystill said "Sent to ntfy".Email only had a timeout on connecting. A server that takes the connection and then never says anything (
smtp://host:465is the easy way to end up with one) held--test-notifyforever, SIGTERM didn't stop it, and in the server every check after it stalled. It gives up after a minute now, or straight away when Patchcall's told to stop.Issue Number
N/A
Additional Info
Tried against a real ntfy (2.38.3) and a listener that never answers. The cap goes by size rather than a number of lines, since 20 of Gitea's longer summaries come out right at ntfy's limit.