feat(provider): timeout, 429 retry and 409 handling for Mollie calls #148
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment#148
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
The SDK retries only 5xx. A 429 is returned at once, and requests have no timeout (
src/provider/mollie.ts,src/billing.ts:478-494).Mollie:
https://docs.mollie.com/reference/rate-limiting
Mollie webhook calls time out after 15 seconds (https://docs.mollie.com/reference/webhooks).
Failing cases: a 429 during
startCheckoutfails the customer's checkout. A stalled connection holds a webhook handler for minutes. A 429 during the sweep or reconciliation aborts the whole pass, becauselistPaymentsandlistChargebackspage through everything.Fix: give each Mollie call
AbortSignal.timeout(10_000). Retry a 429 once or twice on read paths, honouringRetry-After.Also (folded in from #86):
Retry-After, with a capped number of attempts.Done when:
feat(provider): timeout and 429 retry for Mollie callstill feat(provider): timeout, 429 retry and 409 handling for Mollie calls