mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-02 10:09:02 +01:00
2026-11-20 telemetry showed 28,900 weekly rate_limited notification failures across 648 installs. readWebhookResponse cloned HTTP headers on 429/503 responses (shared by Discord, Slack, Telegram, ntfy, Pushover, Gotify, generic webhooks, and Apprise HTTP), but every queued sender discarded them and NotificationQueue retried blindly on fixed backoff. Parse bounded Retry-After (integer/fractional seconds or HTTP-date) and Discord X-RateLimit-Reset-After headers (capped at 15 minutes, body still withheld), attach them to NotificationFailureError, unwrap through nested wrappers like safeAppriseError, and honor max(backoff, retryAfter) in NotificationQueue.scheduleRetryWithHint.