Skip to content

Troubleshoot API keys

Beacon API reports a clear local error when a key cannot rotate. Check the identifier, its saved local state and the order of the procedure before repeating a command. Repeating a failing command does not repair missing prerequisites.

The key is missing or revoked #

Create an active fixture token before rotating it. Run node src/beacon.mjs key create --name another, then rotate key-another in the same repository. The created API key begins at generation 1. Rotation increases that generation; revocation stops further rotations.

A key with that name already exists #

Use a different short lowercase name for a new exercise. Keep the identifier printed by the create command and use it in subsequent commands. To repeat the documented demonstration from a clean local state, run node scripts/reset-fixture.mjs; this deletes only the fixture repository's reserved state folder.

Read Create an API key for the complete prerequisites and expected create result. Rate-limit errors are separate from missing-key errors; see API key limits for the response header.

Was this page helpful?