# Troubleshooting: app errors

> Exact LAWDE Shield app error messages — APP_MISMATCH (“This API key is for another app.”), App not found, APP_DORMANT — what each means and how to fix it.

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

Each message below is quoted exactly as LAWDE returns it. The agent does not print LAWDE’s reply. To see it, send one test error with cURL (see [Getting started](https://www.lawde.net/docs/getting-started#http)) or run `npx @lawdeshield/cli init` again.

## Messages

### `This API key is for another app. Use that app’s ID, or a key for this app.`

- Where: Ingest API response (HTTP 403)
- Code: `APP_MISMATCH`
- Message: `This API key is for another app. Use that app’s ID, or a key for this app.`
- What it means: The key belongs to one app (keys made by `npx @lawdeshield/cli init` browser sign-in always do), but the event names a different app in `app_id` (from `LAWDE_APP_ID` or the `appId` option).
- Fix:
  - Set `LAWDE_APP_ID` to the app the key was made for. The CLI writes it next to the key.
  - Or use a key made for the app you want, for example by running `npx @lawdeshield/cli init` in that app and picking it on lawde.net.

### `app_id does not belong to this workspace.`

- Where: Ingest API response (HTTP 404)
- Code: `App not found`
- Message: `app_id does not belong to this workspace.`
- What it means: The `app_id` sent with the event is not an app in the key’s workspace. Often the ID comes from another workspace, or the app was deleted.
- Fix:
  - Copy the app ID from the app’s page on [Apps](https://www.lawde.net/apps), or remove `LAWDE_APP_ID` so the event goes to the key’s own app (or, for a workspace-wide key, the first active app).

### `No apps configured for this workspace. Create an app before ingesting.`

- Where: Ingest API response (HTTP 404)
- Code: `App not found`
- Message: `No apps configured for this workspace. Create an app before ingesting.`
- What it means: The workspace has no apps, so the event has nowhere to go.
- Fix:
  - Create an app on [Apps](https://www.lawde.net/apps), then send the error again.

### `App is dormant due to workspace plan limits. Upgrade your plan or activate this app in Settings.`

- Where: Ingest API response (HTTP 403)
- Code: `APP_DORMANT`
- Message: `App is dormant due to workspace plan limits. Upgrade your plan or activate this app in Settings.`
- What it means: The workspace has more apps than its plan allows, and this app is one of the paused ones.
- Fix:
  - Activate the app in Settings (pausing another if needed), or move to a plan with more apps: [Pricing](https://www.lawde.net/pricing).
