Skip to content

Query exceeds its work budget (resource_limit) ​

HTTP 422Orion /v3 ProblemCode: resource_limit
Type URI: https://orion.stellarchain.io/problems/resource_limit

The query required scanning more partitions or account subentries than permitted in a single request.

How to Resolve resource_limit

  1. Inspect the status (422), code (resource_limit), and detail fields in the JSON response.
  2. For 400 validation errors (invalid_*), verify query parameters against the Endpoints Reference or Statistics Catalog (GET /v3/statistics).
  3. For 404 errors (*_not_found), confirm the resource exists on Stellar Pubnet.
  4. For 409, 429, 503, or 504 transient states, retry with exponential backoff.

Example Response & Client Handling ​

json
{
  "type": "https://orion.stellarchain.io/problems/resource_limit",
  "title": "Query exceeds its work budget",
  "status": 422,
  "detail": "Query exceeds its work budget",
  "code": "resource_limit"
}
typescript
const res = await fetch('https://pubnet.stellarchain.io/v3/statistics');
if (!res.ok) {
  const problem = await res.json();
  if (problem.code === 'resource_limit') {
    console.error('Orion /v3 Problem [resource_limit]:', problem.detail);
  }
}
bash
curl -i -s "https://pubnet.stellarchain.io/v3/statistics" \
  -H "Accept: application/json"

← Back to All 53 Orion /v3 Problem Codes

Open-Source Stellar Horizon & Orion Documentation under MIT License.