Sonny Labs Docs
Error codes

validation.invalid-json

Alias of `validation.invalid_json`. Variant of `validation.body_unparseable` returned by the dashboard when a proxied request body is not valid JSON.

validation.invalid-json is returned at HTTP 400.

The runtime also emits this code as validation.invalid-json in some legacy paths. Both spellings document the same condition.

When this fires

The dashboard proxies a request to the v1 API and receives a body that does not parse as JSON.

What to do

Set Content-Type: application/json and send a well-formed JSON body. Direct API callers see validation.body_unparseable for the same condition.

See also

  • SDK reference — the Python and TypeScript SDKs raise typed exceptions for codes in this namespace.
  • Error code index — every code the runtime can return.

On this page