contracts.invalid_cursor

failureThis is a failure. A function returns it as a value, so your code keeps running and you decide what to do.

What happened

A cursor cannot be decoded for this keyset.

Fix

Send back the cursor unchanged, or start from the first page.

Check the fix

bun run test -- src/pagination.test.ts

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:119