A failed gap or terminated POST is never retried or reported again
還沒有人認領這個 Issue。
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Go
- 星號
- 1
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
coder/faucet 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 28/100
-
難度 3/5 1-2 天 新手友好度 68/100
-
難度 3/5 1-2 天 新手友好度 62/100
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
uselagoon/lagoon-cli#501 · 1 個 reaction ·
-
難度 1/5 1 小時以內 新手友好度 85/100
-
難度 1/5 1 小時以內 新手友好度 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 70/100
Tarektouati/made#197 ·
維護者通常 1 天內回覆
-
GetBatchResponseById panics for items without a body (204/302) and for unknown ids可能已有人在做 @0z5a 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100