A failed gap or terminated POST is never retried or reported again
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
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
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
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di coder/faucet
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
Tutte le issue di coder/faucet
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsForse già presa @0z5a l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
JuliusBrussee/caveman#1567 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug postgresql
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno