Skip to content

fix: keep big alerts under ntfy's limit, and give email a deadline - #21

Merged
NotAFlightRisk merged 1 commit into
mainfrom
fix/mail-deadline-and-alert-cap
Dec 2, 2026
Merged

NotAFlightRisk merged 1 commit into
mainfrom
fix/mail-deadline-and-alert-cap

Conversation

@NotAFlightRisk

Copy link
Copy Markdown
Owner

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-notify still said "Sent to ntfy".

Email only had a timeout on connecting. A server that takes the connection and then never says anything (smtp://host:465 is the easy way to end up with one) held --test-notify forever, 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.

@github-actions github-actions Bot added the bug Something isn't working label Dec 2, 2026
@NotAFlightRisk
NotAFlightRisk merged commit 7d4db2b into main Dec 2, 2026
12 checks passed
@NotAFlightRisk
NotAFlightRisk deleted the fix/mail-deadline-and-alert-cap branch December 2, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant