tonysm/laravel-elasticsearch-2019

Could not parse URI

Opened this issue · 0 comments

when run composer install got this error

Elasticsearch\Common\Exceptions\InvalidArgumentException : Could not parse URI

at /data/wwwroot/development/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php:601
597| {
598| $parts = parse_url($host);
599|
600| if ($parts === false) {

601| throw new InvalidArgumentException("Could not parse URI");
602| }
603|
604| if (isset($parts['port']) !== true) {
605| $parts['port'] = 9200;

Exception trace:

1 Elasticsearch\ClientBuilder::extractURIParts()
/data/wwwroot/development/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php:561

2 Elasticsearch\ClientBuilder::buildConnectionsFromHosts()
/data/wwwroot/development/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ClientBuilder.php:508