Description
Sales Representative block preview error on Solr.
Steps:
- Setup Solr as search engine for Ibexa Commerce.
- Create landing page.
- Add Sales Representative block.
- Click Save and close on block settings pop-up.
Actual result: Preview is not generated, "Cannot update blocks preview" error in UI, error 500 in log:
request.CRITICAL: Uncaught PHP Exception Ibexa\Solr\Gateway\HttpClient\ConnectionException: "Request POST http://localhost:8989/solr/collection1/select failed" at /Users/michalszoltysek/Projects/workspace/ez12.lh/vendor/ibexa/solr/src/ lib/Gateway/HttpClient/Stream.php line 65 {"exception":"[object] (Ibexa\\Solr\\Gateway\\HttpClient\\ConnectionException(code: 1): Request POST http://localhost:8989/solr/collection1/select failed at /Users/michalszoltysek/Projects/workspace/ez12.lh/vendor/ibexa/solr/src /lib/Gateway/HttpClient/Stream.php:65)\n[previous exception] [object] (Symfony\\Component\\HttpClient\\Exception\\ClientException(code: 400): HTTP/1.1 400 Bad Request returned for \"http://localhost:8989/solr/collection1/select\". at /Users/michalszoltysek/Projects/work space/ez12.lh/vendor/symfony/http-client/Response/CommonResponseTrait.php:178)"} []
Expected result: Preview is generated without errors.
Remarks: Problem does not occur on Legacy search engine or Elastic. While testing one user existed in sales reps group.