{"record":{"id":"01237c62150d61cf","repo":"unopim/unopim","slug":"pagination-type-s-is-not-supported-use-page","errorCode":null,"errorMessage":"Pagination type \"%s\" is not supported. Use \"page\" or \"%s\".","messagePattern":"Pagination type \"(.+?)\" is not supported\\. Use \"page\" or \"(.+?)\"\\.","errorType":"exception","errorClass":"UnprocessableEntityHttpException","httpStatus":422,"severity":"error","filePath":"packages/Webkul/AdminApi/src/ApiDataSource.php","lineNumber":436,"sourceCode":"     */\n    protected function cursorColumn(): string\n    {\n        return $this->sortColumn ?: $this->primaryColumn;\n    }\n\n    /**\n     * Enables cursor mode when the request asks for search_after pagination,\n     * validating the cursor value.\n     *\n     * @throws UnprocessableEntityHttpException When pagination_type or search_after is invalid.\n     */\n    protected function resolveCursorPagination(array $requestedParams): void\n    {\n        $paginationType = $requestedParams['pagination_type'] ?? null;\n        $searchAfter = $requestedParams['search_after'] ?? null;\n\n        if ($paginationType !== null && ! in_array($paginationType, ['page', self::PAGINATION_SEARCH_AFTER], true)) {\n            throw new UnprocessableEntityHttpException(\n                sprintf('Pagination type \"%s\" is not supported. Use \"page\" or \"%s\".', $paginationType, self::PAGINATION_SEARCH_AFTER)\n            );\n        }\n\n        $this->useCursorPagination = $paginationType === self::PAGINATION_SEARCH_AFTER || $searchAfter !== null;\n\n        if (! $this->useCursorPagination || $searchAfter === null || $searchAfter === '') {\n            return;\n        }\n\n        if (! is_numeric($searchAfter) || (int) $searchAfter < 0) {\n            throw new UnprocessableEntityHttpException('The search_after cursor must be a positive integer.');\n        }\n\n        $this->searchAfter = (int) $searchAfter;\n    }\n\n    /**","sourceCodeStart":418,"sourceCodeEnd":454,"githubUrl":"https://github.com/unopim/unopim/blob/c27a402253ed2bcee0f3eb16319fa7fc5eec5ffd/packages/Webkul/AdminApi/src/ApiDataSource.php#L418-L454","documentation":"Error \"Pagination type \"%s\" is not supported. Use \"page\" or \"%s\".\" thrown in unopim/unopim.","triggerScenarios":"Thrown at packages/Webkul/AdminApi/src/ApiDataSource.php:436 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c27a402253ed2bcee0f3eb16319fa7fc5eec5ffd","analyzedAt":"2026-08-21T04:19:34.141Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}