Cursor bundle is no longer retained (stale_cursor)
How to Resolve stale_cursor
- Inspect the
status(409),code(stale_cursor), anddetailfields in the JSON response. - For
400validation errors (invalid_*), verify query parameters against the Endpoints Reference or Statistics Catalog (GET /v3/statistics). - For
404errors (*_not_found), confirm the resource exists on Stellar Pubnet. - For
409,429,503, or504transient states, retry with exponential backoff.
Example Response & Client Handling
json
{
"type": "https://orion.stellarchain.io/problems/stale_cursor",
"title": "Cursor bundle is no longer retained",
"status": 409,
"detail": "Cursor bundle is no longer retained",
"code": "stale_cursor"
}typescript
const res = await fetch('https://pubnet.stellarchain.io/v3/statistics');
if (!res.ok) {
const problem = await res.json();
if (problem.code === 'stale_cursor') {
console.error('Orion /v3 Problem [stale_cursor]:', problem.detail);
}
}bash
curl -i -s "https://pubnet.stellarchain.io/v3/statistics" \
-H "Accept: application/json"