Skip to content

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

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

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

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

Type to search…

↑↓ navigate↵ selectEsc close