Each message below is quoted exactly as the ingest API returns it. These mostly come up when you call the HTTP API yourself; the agent builds valid requests.
Plain-text copy for AI assistants: /docs/troubleshooting/payloads.md
LAWDE Shield · Documentation
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.
Each message below is quoted exactly as the ingest API returns it. These mostly come up when you call the HTTP API yourself; the agent builds valid requests.
Plain-text copy for AI assistants: /docs/troubleshooting/payloads.md
Invalid JSON payloadWhere: Ingest API response (HTTP 400)
What it means: The body is not a JSON object: empty, cut short, or not JSON at all.
Fix:
Content-Type: application/json and a JSON object body. In shell scripts, check the quoting around -d.Validation failedWhere: Ingest API response (HTTP 400, with a details object per field)
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:
error_class, error_message, stack_trace, file_path and line_number.error_class is requiredWhere: Validation failed → details
What it means: A required field is missing or empty. The same message is used for error_message, stack_trace and file_path.
Fix:
stack_trace.line_number must be a positive integerWhere: Validation failed → details
What it means: line_number is missing, 0, negative or not a whole number.
Fix:
app_id must be a valid UUIDWhere: Validation failed → details
What it means: app_id is set but is not an app ID. App IDs are UUIDs.
Fix:
app_id out.Failed to persist error logWhere: Ingest API response (HTTP 500)
What it means: LAWDE could not store the event. This is on LAWDE’s side, not in your request.
Fix:
Internal Sentinel Ingestion ErrorWhere: Ingest API response (HTTP 500)
What it means: An unexpected error on LAWDE’s side.
Fix: