unopim/unopim · error · UnprocessableEntityHttpException
Pagination type "%s" is not supported. Use "page" or "%s".
Error message
Pagination type "%s" is not supported. Use "page" or "%s".
What it means
Error "Pagination type "%s" is not supported. Use "page" or "%s"." thrown in unopim/unopim.
Source
Thrown at packages/Webkul/AdminApi/src/ApiDataSource.php:436
*/
protected function cursorColumn(): string
{
return $this->sortColumn ?: $this->primaryColumn;
}
/**
* Enables cursor mode when the request asks for search_after pagination,
* validating the cursor value.
*
* @throws UnprocessableEntityHttpException When pagination_type or search_after is invalid.
*/
protected function resolveCursorPagination(array $requestedParams): void
{
$paginationType = $requestedParams['pagination_type'] ?? null;
$searchAfter = $requestedParams['search_after'] ?? null;
if ($paginationType !== null && ! in_array($paginationType, ['page', self::PAGINATION_SEARCH_AFTER], true)) {
throw new UnprocessableEntityHttpException(
sprintf('Pagination type "%s" is not supported. Use "page" or "%s".', $paginationType, self::PAGINATION_SEARCH_AFTER)
);
}
$this->useCursorPagination = $paginationType === self::PAGINATION_SEARCH_AFTER || $searchAfter !== null;
if (! $this->useCursorPagination || $searchAfter === null || $searchAfter === '') {
return;
}
if (! is_numeric($searchAfter) || (int) $searchAfter < 0) {
throw new UnprocessableEntityHttpException('The search_after cursor must be a positive integer.');
}
$this->searchAfter = (int) $searchAfter;
}
/**View on GitHub (pinned to c27a402253)
When it happens
Trigger: Thrown at packages/Webkul/AdminApi/src/ApiDataSource.php:436 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of unopim/unopim@c27a402253 (2026-08-21).
Data as JSON: /api/errors/01237c62150d61cf.
Report an issue: GitHub.