Elastica: Can't resolve host

I readed aome issues and none resolve my problem: Can’t resolve host

selecao_197

els

<?php
use Elastica\Client as ElasticaClient;
 $config = [
                'host' =>  env('ELASTICSEARCH_HOST', 'https://xxxxxxxxxxxxxx-txf2c57vaupiv7ij6haeusfgsdi.us-east-1.es.amazonaws.com'),
                'port' => 443,
                'transport' => 'Http'
            ];
            return new ElasticaClient($config, null);

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

@ruflin I discovery the error, simple.

I invaded your lib, and depurated your code, which host the lib was got, I see https://https😕/, i.e., duplicated schema http(s). I removed the schema http from my host address config, and now it connect.

Thanks for your patience.