# Troubleshooting: request and server errors

> Exact LAWDE Shield ingest request messages — “Invalid JSON payload”, “Validation failed”, field errors such as “line_number must be a positive integer”, and server errors.

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

Each message below is quoted exactly as the ingest API returns it. These mostly come up when you call the [HTTP API](https://www.lawde.net/docs/sdk/http) yourself; the agent builds valid requests.

## Messages

### `Invalid JSON payload`

- Where: Ingest API response (HTTP 400)
- Message: `Invalid JSON payload`
- What it means: The body is not a JSON object: empty, cut short, or not JSON at all.
- Fix:
  - Send `Content-Type: application/json` and a JSON object body. In shell scripts, check the quoting around `-d`.

### `Validation failed`

- Where: Ingest API response (HTTP 400, with a details object per field)
- Message: `Validation failed`
- What it means: The JSON parsed, but a field is missing or has the wrong type. `details` names the field; the field messages are below.
- Fix:
  - Send every required field: `error_class`, `error_message`, `stack_trace`, `file_path` and `line_number`.

### `error_class is required`

- Where: Validation failed → details
- Message: `error_class is required`
- What it means: A required field is missing or empty. The same message is used for `error_message`, `stack_trace` and `file_path`.
- Fix:
  - Send a non-empty string for the field. If you have no stack, send the message as `stack_trace`.

### `line_number must be a positive integer`

- Where: Validation failed → details
- Message: `line_number must be a positive integer`
- What it means: `line_number` is missing, 0, negative or not a whole number.
- Fix:
  - Send the crash line as a whole number from 1 up.

### `app_id must be a valid UUID`

- Where: Validation failed → details
- Message: `app_id must be a valid UUID`
- What it means: `app_id` is set but is not an app ID. App IDs are UUIDs.
- Fix:
  - Copy the app ID from [Apps](https://www.lawde.net/apps), or leave `app_id` out.

### `Failed to persist error log`

- Where: Ingest API response (HTTP 500)
- Message: `Failed to persist error log`
- What it means: LAWDE could not store the event. This is on LAWDE’s side, not in your request.
- Fix:
  - Retry later. If it continues, check [Status](https://www.lawde.net/status) or email support@lawde.net.

### `Internal Sentinel Ingestion Error`

- Where: Ingest API response (HTTP 500)
- Message: `Internal Sentinel Ingestion Error`
- What it means: An unexpected error on LAWDE’s side.
- Fix:
  - Retry later. If it continues, check [Status](https://www.lawde.net/status) or email support@lawde.net.
