---
title: "Request body too large (payload-too-large)"
description: "PubNio payload-too-large problem, HTTP 413: An execute call's JSON body is over the 12 MiB sandbox limit."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Request body too large (payload-too-large)

HTTP 413 Request body too large. An `execute` call's JSON body is over the 12 MiB sandbox limit.

## When it happens

Only `codemode.request()` in the MCP `execute` tool returns it, as `data` with `ok: false`.

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/payload-too-large/",
  "status": 413,
  "title": "Request body too large",
  "detail": "Request body exceeds the 12 MiB sandbox limit.",
  "code": "payload_too_large",
  "param": "body",
  "nextAction": "Import large files by URL with POST /api/v1/media/import.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field        | Type   | Always present |
| ------------ | ------ | -------------- |
| `param`      | string | No             |
| `nextAction` | string | Yes            |

## Recovery for agents

- Do what `nextAction` says.
- `param` is the field to change.

## Retryable

No: no SDK runs in the sandbox and no `Retry-After` header comes back. Run unchanged, the same script fails the same way.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [MCP Code Mode sandbox problems](https://pubnio.com/docs/problems/#mcp-code-mode-sandbox)
- [MCP server](https://pubnio.com/docs/mcp/)

Source: https://pubnio.com/docs/problems/payload-too-large/index.mdx
