# Troubleshooting

> Find a LAWDE Shield error message and its fix: API keys, apps, rate limits and quotas, ingest requests, npx @lawdeshield/cli init and the @lawdeshield/agent SDK. Every message is quoted exactly.

Source: https://www.lawde.net/docs/troubleshooting

Search this page for the message you see (Ctrl+F or ⌘F). Each message is quoted exactly as LAWDE returns or prints it, with what it means and how to fix it.

## First, see the exact message

The agent does not print LAWDE’s reply. Send one test error with cURL using your key (see [Getting started](https://www.lawde.net/docs/getting-started#http)), or run `npx @lawdeshield/cli init` again: it prints ✓ only when LAWDE confirms it stored the error, and ✗ with the reason otherwise.

## API keys

Missing, invalid, revoked or dormant keys, and keys without ingest permission. [All api keys messages](https://www.lawde.net/docs/troubleshooting/api-keys).

- [`Missing API key. Provide x-lawde-api-key or Authorization: Bearer <key>.`](https://www.lawde.net/docs/troubleshooting/api-keys#missing-api-key)
- [`Invalid or revoked API key.`](https://www.lawde.net/docs/troubleshooting/api-keys#invalid-or-revoked-api-key)
- [`API key is dormant due to workspace plan limits. Upgrade your plan or activate this key in Settings.`](https://www.lawde.net/docs/troubleshooting/api-keys#key-dormant)
- [`This API key does not have ingest permission.`](https://www.lawde.net/docs/troubleshooting/api-keys#no-ingest-permission)
- [`Warning: this does not look like a LAWDE key (they start with lawde_). Continuing; the test error will tell.`](https://www.lawde.net/docs/troubleshooting/api-keys#not-a-lawde-key)

## Apps

An app-scoped key used for another app, unknown app IDs, and paused apps. [All apps messages](https://www.lawde.net/docs/troubleshooting/apps).

- [`This API key is for another app. Use that app’s ID, or a key for this app.`](https://www.lawde.net/docs/troubleshooting/apps#app-mismatch)
- [`app_id does not belong to this workspace.`](https://www.lawde.net/docs/troubleshooting/apps#app-id-not-in-workspace)
- [`No apps configured for this workspace. Create an app before ingesting.`](https://www.lawde.net/docs/troubleshooting/apps#no-apps)
- [`App is dormant due to workspace plan limits. Upgrade your plan or activate this app in Settings.`](https://www.lawde.net/docs/troubleshooting/apps#app-dormant)

## Limits and quotas

Burst rate limits, per-key limits, the workspace quota, billing holds and metering. [All limits and quotas messages](https://www.lawde.net/docs/troubleshooting/limits).

- [`Rate limit exceeded`](https://www.lawde.net/docs/troubleshooting/limits#rate-limit-exceeded)
- [`Rate limit exceeded`](https://www.lawde.net/docs/troubleshooting/limits#api-key-rate-limit)
- [`This workspace has reached its <limit> errors/day limit for the <plan> plan (shared by all members). Quota resets at 00:00 UTC.`](https://www.lawde.net/docs/troubleshooting/limits#workspace-quota-exceeded)
- [`Workspace access is suspended. Update payment to resume ingest.`](https://www.lawde.net/docs/troubleshooting/limits#payment-required)
- [`Ingest metering unavailable`](https://www.lawde.net/docs/troubleshooting/limits#metering-unavailable)

## Requests

Invalid JSON, missing or wrong fields, and errors on LAWDE’s side. [All requests messages](https://www.lawde.net/docs/troubleshooting/payloads).

- [`Invalid JSON payload`](https://www.lawde.net/docs/troubleshooting/payloads#invalid-json)
- [`Validation failed`](https://www.lawde.net/docs/troubleshooting/payloads#validation-failed)
- [`error_class is required`](https://www.lawde.net/docs/troubleshooting/payloads#field-required)
- [`line_number must be a positive integer`](https://www.lawde.net/docs/troubleshooting/payloads#line-number)
- [`app_id must be a valid UUID`](https://www.lawde.net/docs/troubleshooting/payloads#app-id-uuid)
- [`Failed to persist error log`](https://www.lawde.net/docs/troubleshooting/payloads#persist-failed)
- [`Internal Sentinel Ingestion Error`](https://www.lawde.net/docs/troubleshooting/payloads#internal-error)

## CLI

Browser sign-in codes, the approval page, project detection and the test error. [All cli messages](https://www.lawde.net/docs/troubleshooting/cli).

- [`Browser sign-in did not finish: the code expired (10 minutes). Run npx @lawdeshield/cli init again.`](https://www.lawde.net/docs/troubleshooting/cli#code-expired)
- [`Browser sign-in did not finish: the request was denied on lawde.net.`](https://www.lawde.net/docs/troubleshooting/cli#request-denied)
- [`Browser sign-in did not finish: lost contact with <url>.`](https://www.lawde.net/docs/troubleshooting/cli#lost-contact)
- [`Browser sign-in did not finish: could not reach <url> (<error>).`](https://www.lawde.net/docs/troubleshooting/cli#could-not-reach)
- [`Too many sign-in codes from this network. Try again in a few minutes.`](https://www.lawde.net/docs/troubleshooting/cli#too-many-codes)
- [`Browser sign-in is not available right now. Paste a key instead (--paste).`](https://www.lawde.net/docs/troubleshooting/cli#sign-in-unavailable)
- [`Unknown code. Run npx @lawdeshield/cli init again.`](https://www.lawde.net/docs/troubleshooting/cli#unknown-code)
- [`This code was already used.`](https://www.lawde.net/docs/troubleshooting/cli#code-already-used)
- [`This code cannot be used. Run npx @lawdeshield/cli init again.`](https://www.lawde.net/docs/troubleshooting/cli#code-cannot-be-used)
- [`This code was not found, was already used, or expired. Run npx @lawdeshield/cli init again.`](https://www.lawde.net/docs/troubleshooting/cli#approve-not-found)
- [`Only people who can manage API keys in this workspace can approve.`](https://www.lawde.net/docs/troubleshooting/cli#approve-forbidden)
- [`Pick the app this key is for.`](https://www.lawde.net/docs/troubleshooting/cli#approve-app-required)
- [`That app is paused by your plan limits. Activate it in Settings first.`](https://www.lawde.net/docs/troubleshooting/cli#approve-app-dormant)
- [`Your plan allows <limit> active keys. Choose one to replace.`](https://www.lawde.net/docs/troubleshooting/cli#approve-key-limit)
- [`No package.json in <folder>. Run this in your app's folder, or pass --cwd.`](https://www.lawde.net/docs/troubleshooting/cli#no-package-json)
- [`Could not tell which framework this is (looked for Next.js, Express, Medusa v2 or a Node entry file). Run it in your app folder or pass --cwd <folder>; for a Node server, pass --entry <file>.`](https://www.lawde.net/docs/troubleshooting/cli#unknown-framework)
- [`Several packages found. Run again with --cwd <package folder>.`](https://www.lawde.net/docs/troubleshooting/cli#several-packages)
- [`Could not find your server entry file. Run again with --entry <file>, or create lawde.js yourself:`](https://www.lawde.net/docs/troubleshooting/cli#entry-not-found)
- [`No API key. Pass --key <key> or set LAWDE_API_KEY.`](https://www.lawde.net/docs/troubleshooting/cli#no-api-key)
- [`--app must be an app ID (a UUID). Find it on the app page in the dashboard.`](https://www.lawde.net/docs/troubleshooting/cli#app-not-uuid)
- [`<install command> failed (exit <code>). Nothing else was changed.`](https://www.lawde.net/docs/troubleshooting/cli#install-failed)
- [`✗ LAWDE did not store the test error: <reason>`](https://www.lawde.net/docs/troubleshooting/cli#test-error-not-stored)
- [`the API key was rejected (<message>).`](https://www.lawde.net/docs/troubleshooting/cli#key-rejected)
- [`a limit was reached (<message>).`](https://www.lawde.net/docs/troubleshooting/cli#limit-reached)
- [`LAWDE answered without confirming the error was stored.`](https://www.lawde.net/docs/troubleshooting/cli#not-confirmed)
- [`✗ No API key, so no test error was sent.`](https://www.lawde.net/docs/troubleshooting/cli#no-key-no-test)

## Agent SDK

Startup warnings, a missing key, and why nothing arrives. [All agent sdk messages](https://www.lawde.net/docs/troubleshooting/agent).

- [`[LawdeAgent] apiKey is required`](/docs/troubleshooting/agent#apikey-required)
- [`[LAWDE] LAWDE_API_KEY missing — live crash capture disabled`](/docs/troubleshooting/agent#key-missing-next)
- [`[LAWDE] LAWDE_API_KEY missing — crash capture disabled`](/docs/troubleshooting/agent#key-missing-medusa)
- [`[LawdeAgent] captureException failed`](/docs/troubleshooting/agent#capture-failed-debug)
