akeneo / api-php-client

PHP client of Akeneo PIM API

Home Page:https://packagist.org/packages/akeneo/api-php-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cursor resource product api not returning all products after server issue

pja9001 opened this issue · comments

For product import we use the all() method of the api's which always worked perfectly with large catalog volumes (180k products, 35k categories) but since yesterday for the productApi it doesn't seem to return all the products anymore.

It most likely is related to the issue we had yesterday that disk space was 95% full causing ElasticSearch after cleaning up i have tried reindex, clear cache, reset elasticsearch indexes but nothing seems to help.

$searchFilters= ['enabled' => true] if (0 === $totalCount= $productApi->listPerPage(1,true, $searchFilters)->getCount()) { return false; } return $productApi->all(100, $searchFilters);

In above code snippet, $totalCount returns 76980 but all stops at 53858, could this be some kind of caching issue or something else i might need to reset?

This wasn't really an issue with the php-client.

Clear akeneo cache + reset Elasticsearch + product indexes fixed it.