'Can't start searchkick reindex

I can’t start reindexing, and can’t connect the elasticsearch from rails app.

pry(main)> Searchkick.server_version
ETHON: Libcurl initialized
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
ETHON: performed EASY effective_url= response_code= return_code=url_malformat total_time=
Faraday::ConnectionFailed: URL using bad/illegal format or missing URL
from /Users/superchel/.rvm/gems/ruby-2.7.5/gems/typhoeus-1.4.0/lib/typhoeus/adapters/faraday.rb:106:in `block in request'

but curl connects without problems

% curl localhost:9200/_cat/health 1648594087 22:48:07 elasticsearch_superchel green 1 1 3 3 0 0 0 0 - 100.0%

please tell me what is the problem? my system MacOS Monterey M1 chip



Solution 1:[1]

the problem was solved by updating the ethon gem from 0.12.0 to 0.15.0 version

bundle update ethon

Solution 2:[2]

Have you configured your search server URL? From https://github.com/ankane/searchkick#deployment

For the search server, Searchkick uses ENV["ELASTICSEARCH_URL"] for Elasticsearch and ENV["OPENSEARCH_URL"] for OpenSearch.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ???? ???????
Solution 2 J c