Seems like there is an issue with special finnish characters such as ö and ä. For example:
Works just fine, but throws the exception / stack trace below.
InvalidArgumentException in CurlFactory.php line 289:
Invalid request body provided
in CurlFactory.php line 289
at CurlFactory->addStreamingBody(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json'))), array('_headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json')), 'GET', 'http://localhost:9200/partner-portal/products/_search', false, false, 150, object(Closure), 3, true)) in CurlFactory.php line 248
at CurlFactory->applyBody(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json'))), array('_headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json')), 'GET', 'http://localhost:9200/partner-portal/products/_search', false, false, 150, object(Closure), 3, true)) in CurlFactory.php line 203
at CurlFactory->applyMethod(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json'))), array('_headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json')), 'GET', 'http://localhost:9200/partner-portal/products/_search', false, false, 150, object(Closure), 3, true)) in CurlFactory.php line 30
at CurlFactory->__invoke(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json'))), resource) in CurlHandler.php line 84
at CurlHandler->_invokeAsArray(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json')))) in CurlHandler.php line 68
at CurlHandler->__invoke(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json')))) in Middleware.php line 30
at Middleware::GuzzleHttp\Ring\Client\{closure}(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json')))) in Connection.php line 196
at Connection->Elasticsearch\Connections\{closure}(array('http_method' => 'GET', 'scheme' => 'http', 'uri' => '/partner-portal/products/_search', 'body' => false, 'headers' => array('host' => array('localhost:9200'), 'Content-type' => array('application/json'), 'Accept' => array('application/json'))), object(Connection), object(Transport), array()) in Connection.php line 171
at Connection->performRequest('GET', '/partner-portal/products/_search', array(), false, array(), object(Transport)) in Transport.php line 100
at Transport->performRequest('GET', '/partner-portal/products/_search', array(), array('query' => array('bool' => array('must' => array(array('query_string' => array('query' => '*kaniininmets�st�j�*')))))), array()) in Client.php line 1502