DEV Community

Yegor Shytikov
Yegor Shytikov

Posted on

Magento {\"error\":{\"root_cause\"[{\"type\":\"index_not_found_exception\",\"reason\":\"no such index\":

To fix this error you need to reindex bin/magento indexer:reindex

{"0":"{\"error\":{\"root_cause\":[{\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"resource.type\":\"index_or_alias\",\"resource.id\":\"magento2_product_2\",\"index_uuid\":\"na\",\"index\":\"magento2_product_2\"}],\"type\":\"index_not_found_exception\",\"reason\":\"no such index\",\"resource.type\":\"index_or_alias\",\"resource.id\":\"magento2_product_2\",\"index_uuid\":\"na\",\"index\":\"magento2_product_2\"},\"status\":404}","1":"#1 Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}() called at [vendor\/react\/promise\/src\/FulfilledPromise.php:28]\n#2 React\Promise\FulfilledPromise->then() called at [vendor\/ezimuel\/ringphp\/src\/Future\/CompletedFutureValue.php:55]\n#3 GuzzleHttp\Ring\Future\CompletedFutureValue->then() called at [vendor\/ezimuel\/ringphp\/src\/Core.php:341]\n#4 GuzzleHttp\Ring\Core::proxy() called at [vendor\/elasticsearch\/elasticsearch\/src\/Elasticsearch\/Connections\/Connection.php:329]\n#5 Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}() called at [vendor\/elasticsearch\/elasticsearch\/src\/Elasticsearch\/Connections\/Connection.php:227]\n#6 Elasticsearch\Connections\Connection->performRequest() called at [vendor\/elasticsearch\/elasticsearch\/src\/Elasticsearch\/Transport.php:105]\n#7 Elasticsearch\Transport->performRequest() called at [vendor\/elasticsearch\/elasticsearch\/src\/Elasticsearch\/Client.php:1559]\n#8 Elasticsearch\Client->performRequest() called at [vendor\/elasticsearch\/elasticsearch\/src\/Elasticsearch\/Client.php:1192]\n#9 Elasticsearch\Client->search() called at [vendor\/magento\/module-elasticsearch-7\/Model\/Client\/Elasticsearch.php:367]\n#10 Magento\Elasticsearch7\Model\Client\Elasticsearch->query() called at [vendor\/magento\/module-elasticsearch\/SearchAdapter\/Dynamic\/DataProvider.php:221]\n#11 Magento\Elasticsearch\SearchAdapter\Dynamic\DataProvider->getAggregation() called at [vendor\/magento\/framework\/Search\/Dynamic\/Algorithm\/Manual.php:48]\n#12 Magento\Framework\Search\Dynamic\Algorithm\Manual->getItems() called at [vendor\/magento\/module-elasticsearch\/SearchAdapter\/Aggregation\/Builder\/Dynamic.php:48]\n#13 Magento\Elasticsearch\SearchAdapter\Aggregation\Builder\Dynamic->build()

Top comments (0)