A failed gap or terminated POST is never retried or reported again

Ouverte
#87 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
30/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
go
Domaine
api, backend

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 gap and terminated envelopes" (events.mdx L524).
  • For webhook mode, truncated appears 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:

  1. Retry gap and terminated envelopes with the same webhook-id on the event retry schedule.
  2. Remember an unacknowledged gap on the subscription, and answer the next renewal with truncated: true and 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

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de coder/faucet

Toutes les issues de coder/faucet

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.