A failed gap or terminated POST is never retried or reported again
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 30/100
Piste de recherche
Read faucet/deliver.go around lines 544-550, where gap and terminated envelopes are POSTed exactly once instead of going through the retry/backoff path used for event deliveries, then faucet/subscribe.go lines 281-283 where a renewal keeps its own start and never sets truncated. docs/webhooks.md L124 describes the intended envelope semantics; the proposal leaves a choice between retrying with the same webhook-id or recording an unacknowledged gap and reporting it on the next renewal, so pick one before coding. Done means a failed gap POST is retried on the event schedule and a renewal can answer truncated: true with the gap cursor, with tests covering a 503 receiver.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
gap and terminated envelopes are attempted once, with no retry (docs/webhooks.md, faucet/deliver.go). A renewal never reports truncated: true ("A renewal kept its own start", faucet/subscribe.go). If the one POST fails, for example because the receiver answers 503 during a deploy, the client never learns that events were lost.
The spec expects both signals to survive a failed POST:
- A receiver that is not ready SHOULD answer 503 or 425, and "the server's retry and backoff redelivers". This guidance "covers event deliveries and the
gapandterminatedenvelopes" (events.mdx L524). - For webhook mode,
truncatedappears in the subscribe or refresh response, and the gap envelope exists so the client learns of a gap "without waiting for the next refresh" (L695). So the refresh response is the fallback signal.
Proposal
Either of these closes the hole, and both together match the spec best:
- Retry
gapandterminatedenvelopes with the samewebhook-idon the event retry schedule. - Remember an unacknowledged gap on the subscription, and answer the next renewal with
truncated: trueand the gap's cursor.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- Langage dominant
- Go
- Étoiles
- 1
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de coder/faucet
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 62/100
Toutes les issues de coder/faucet
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsPeut-être pris @0z5a l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
JuliusBrussee/caveman#1567 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug postgresql
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Les mainteneurs répondent en général sous 1 jour