ARKI_RESILIENCE_E006

thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.

What happened

A `backoff` builder got an option or an attempt number it cannot use.

Fix

Pass finite, non-negative numbers: `jitter` from 0 to 1, a whole number to `upTo`, attempts from 1.

Check the fix

cd packages/resilience && bun run test

Run it after the fix. It passes when the fix worked.

Where it comes from

Package
@arki/resilience
Version
0.2.0 · next release candidate
Source
src/errors.ts:44