cap_outputs

LimitSeen in: The editor, Charts, RunsSee the limit

What happened

A script runs with a limit on the outputs it may use. When it goes over, the sandbox stops it and answers with this code. detail names the cap that tripped (max_outputs), how much the script used and how much was allowed. The caps differ for a chart and for a run, and the code sandbox section of the Limits page lists them.

What to do

Return fewer series. Each named output counts.

Example

json
{
  "request_id": "7d2b1c44-95a0-4e3b-8a6f-1c0d9e2f5a37",
  "ok": false,
  "error": {
    "code": "cap_outputs",
    "message": "The script produced more output than allowed.",
    "detail": {
      "cap": "max_outputs",
      "used": 80,
      "allowed": 64
    }
  }
}

Ask about this in the forum