INVALID_CURSOR
The cursor is not one this list issued, or it was issued for another sort order.
Typical cause
The cursor was decoded or built by hand, kept from an earlier read with another sort, or sent with different filters.
Fix
Pass meta.pagination.next_cursor back exactly as received, with the same filters and sort; start again without a cursor if in doubt.
Where it comes from
Any operation can answer it (HTTP 400).
Related
{
"error": {
"code": "INVALID_CURSOR",
"message": "…",
"request_id": "req_01JB4Z0K3Q7V8W9X0Y1Z2A3B4C",
"doc_url": "https://developers.tracken.ee/errors/INVALID_CURSOR"
}
}code, never on message, which is developer-facing English and may change. Field problems are in details, each with a JSON Pointer; the figures for your own text are in context. Quote request_id when you contact support.tracken contacts list …
# exits 9 and prints the code, the message, each field problem and the request idimport { isApiError } from "@tracken/sdk";
try {
await tracken.contacts.list(…);
} catch (error) {
if (!isApiError(error, "INVALID_CURSOR")) throw error;
// Pass meta.pagination.next_cursor back exactly as received, with the same filters and sort; start again without a cursor if in doubt.
}