ARKI_CONTRACTS_E003

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

What happened

Reserved legacy exception code; ID generation now returns RandomSourceUnavailable.

Fix

Provide Web Crypto getRandomValues; application-owned secure providers must fail closed in every supported mode.

Check the fix

bun run test:runtimes

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

Where it comes from

Package
@arki/contracts
Version
0.3.0 · next release candidate
Source
src/errors.ts:31