Skip to main content

Invalid Pagination Cursor

Code

  • code: invalid_cursor
  • status: 400
  • url: https://developers.glean.com/errors/invalid-cursor

What It Means

The pagination cursor cannot be used for this request.

Common Causes

  • The cursor is malformed, truncated, or copied incorrectly.
  • The cursor came from a different endpoint, query, or request shape.
  • The client changed pagination-related inputs between requests.

How To Resolve

Client Actions

  • Use cursors only with the same endpoint and request shape that returned them.
  • Start a new request and use the fresh cursor returned in that response.

Retry Guidance

Do not retry with the same cursor. Start pagination again.

Example Response

{
"type": "https://developers.glean.com/errors/invalid-cursor",
"title": "Invalid Pagination Cursor",
"status": 400,
"detail": "Human-readable explanation specific to this occurrence.",
"code": "invalid_cursor",
"documentation_url": "https://developers.glean.com/errors/invalid-cursor",
"request_id": "req_7f8a9b0c1d2e"
}