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

Aperta
#87 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Go
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/faucet

Tutte le issue di coder/faucet

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.