Symfony\Component\HttpClient\Exception\ClientException {#2006
  #message: "HTTP/1.1 400 Bad Request returned for "http://localhost:9200/swiss_webshop_product_prod/_search"."
  #code: 400
  #file: "/var/www/iaom/dev_swiss/vendor/symfony/http-client/Response/CommonResponseTrait.php"
  #line: 173
  -response: Symfony\Component\HttpClient\Response\CurlResponse {#1206
    response_headers: array:4 [
      0 => "HTTP/1.1 400 Bad Request"
      1 => "content-type: application/json; charset=UTF-8"
      2 => "content-encoding: gzip"
      3 => "content-length: 404"
    ]
    http_code: 400
    error: null
    canceled: false
    http_method: "POST"
    user_data: null
    max_duration: 0.0
    start_time: 1781806142.9073
    original_url: "http://localhost:9200/swiss_webshop_product_prod/_search"
    pause_handler: Closure(float $duration) {#2002
      class: "Symfony\Component\HttpClient\Response\CurlResponse"
      use: {
        $ch: CurlHandle {#1261 …}
        $multi: Symfony\Component\HttpClient\Internal\CurlClientState {#1563 …}
        $execCounter: -9223372036854775760
      }
    }
    redirect_url: null
    url: "http://localhost:9200/swiss_webshop_product_prod/_search"
    content_type: "application/json; charset=UTF-8"
    header_size: 120
    request_size: 322
    filetime: -1
    ssl_verify_result: 0
    redirect_count: 0
    total_time: 0.008698
    namelookup_time: 2.4E-5
    connect_time: 2.6E-5
    pretransfer_time: 8.6E-5
    size_upload: 119.0
    size_download: 404.0
    speed_download: 50500.0
    speed_upload: 14875.0
    download_content_length: 404.0
    upload_content_length: 119.0
    starttransfer_time: 0.008582
    redirect_time: 0.0
    primary_ip: "127.0.0.1"
    certinfo: []
    primary_port: 9200
    local_ip: "127.0.0.1"
    local_port: 48560
    http_version: 2
    protocol: 1
    ssl_verifyresult: 0
    scheme: "HTTP"
    appconnect_time_us: 26
    connect_time_us: 26
    namelookup_time_us: 24
    pretransfer_time_us: 86
    redirect_time_us: 0
    starttransfer_time_us: 8582
    total_time_us: 8698
    debug: "Due to a bug in curl 7.64.0, the debug log is disabled; use another version to work around the issue."
     …16
  }
  trace: {
    /var/www/iaom/dev_swiss/vendor/symfony/http-client/Response/CommonResponseTrait.php:173 {
      Symfony\Component\HttpClient\Response\CurlResponse->checkStatusCode(): void …
      › if (400 <= $code) {    throw new ClientException($this);}
    }
    /var/www/iaom/dev_swiss/vendor/symfony/http-client/Response/CommonResponseTrait.php:47 {
      Symfony\Component\HttpClient\Response\CurlResponse->doGetContent(bool $throw = true): string …
      › if ($throw) {    $this->checkStatusCode();}
    }
    /var/www/iaom/dev_swiss/vendor/symfony/http-client/Response/CurlResponse.php:229 {
      Symfony\Component\HttpClient\Response\CurlResponse->getContent(bool $throw = true): string …
      › try {    return $this->doGetContent($throw);} finally {
    }
    /var/www/iaom/dev_swiss/vendor/symfony/http-client/Response/CommonResponseTrait.php:79 {
      Symfony\Component\HttpClient\Response\CurlResponse->toArray(bool $throw = true): array …
      › {    if ('' === $content = $this->getContent($throw)) {        throw new JsonException('Response body is empty.');
    }
    /var/www/iaom/dev_swiss/src/Service/ElasticSearchService.php:43 {
      App\Service\ElasticSearchService->query(Query $query) …
      › try {    return $response->toArray();} catch (\Exception $exception) {
    }
    /var/www/iaom/dev_swiss/src/Controller/ProductController.php:153 {
      App\Controller\ProductController->category(PaginatorInterface $paginator, Request $request, EntityManagerInterface $entityManager, ProductManager $productManager, HttpClientInterface $httpClient, ElasticSearchService $elasticSearch, ?ProductCategory $productCategory = null): Response …
      › //            dump(json_encode($query->toArray()));exit;            $data = $elasticSearch->query($query);            $all[$field] = array_column($data['aggregations']['count']['buckets'], 'doc_count', 'key');
    }
    /var/www/iaom/dev_swiss/vendor/symfony/http-kernel/HttpKernel.php:181 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/iaom/dev_swiss/vendor/symfony/http-kernel/HttpKernel.php:76 {
      Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {
    }
    /var/www/iaom/dev_swiss/vendor/symfony/http-kernel/Kernel.php:197 {
      Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
      › try {    return $this->getHttpKernel()->handle($request, $type, $catch);} finally {
    }
    /var/www/iaom/dev_swiss/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
      Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
      › {    $response = $this->kernel->handle($this->request);}
    /var/www/iaom/dev_swiss/vendor/autoload_runtime.php:29 {
      require_once …
      ›         ->getRunner($app)        ->run());
    }
    /var/www/iaom/dev_swiss/public/index.php:5 {
      › 
      › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';umask(0002);
      arguments: {
        "/var/www/iaom/dev_swiss/vendor/autoload_runtime.php"
      }
    }
  }
}