---
title: "Too many sub-requests (too-many-requests)"
description: "PubNio too-many-requests problem, HTTP 429: An execute script calls codemode.request() more than 25 times."
---

> 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.

# Too many sub-requests (too-many-requests)

HTTP 429 Too many sub-requests. An `execute` script calls `codemode.request()` more than 25 times.

## 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/too-many-requests/",
  "status": 429,
  "title": "Too many sub-requests",
  "detail": "An execute call may issue at most 25 API requests.",
  "code": "too_many_requests",
  "nextAction": "Reduce the number of API calls in one execute script or return partial results.",
  "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 hits the same limit again.

## 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/too-many-requests/index.mdx
