ARKI_STRING_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
An input is not valid strict base64: whitespace, a mixed alphabet, bad padding or an impossible length.
Fix
Pass strict base64 of the chosen alphabet with correct padding. Encoding APIs return canonical failures; narrow with `isFailure`.
Check the fix
bun run testRun it after the fix. It passes when the fix worked.
Where it comes from
- Package
- @arki/string
- Version
- 0.3.0 · next release candidate
- Source
- src/errors.ts:29