# X_CASSETTE_SECRET

## Means

a cassette about to be written holds a secret value

## Typical cause

the value of a redacted env key or a declared secret appears in the bytes about to be written (raw, percent-encoded, base64 or base64url); nothing was written

## Fix

`cassette(import.meta.dir, <name>, { redact: (text) => text.replaceAll(<value of KEY>, '[redacted]') })` — then re-record

[Testing](/error-codes#testing)
