Searchkick with ElasticSearch returns “Faraday::ConnectionFailed: execution expired”

前端 未结 3 927
粉色の甜心
粉色の甜心 2021-01-21 03:36

I\'ve been using the searchkick gem with elasticsearch with no problems on a Rails 4.2.0 application. I have a single Video model using searchkick.

For some reason

3条回答
  •  鱼传尺愫
    2021-01-21 04:10

    For me, the problem was with the missing port in the URL. ( I am using AWS elasticsearch and not running it on localhost. )

    I changed

    ENV['ELASTICSEARCH_URL'] = Rails.application.credentials.dig(:elasticsearch, :url)
    

    to

    ENV['ELASTICSEARCH_URL'] = Rails.application.credentials.dig(:elasticsearch, :url) + ':443'
    

    This does not affect all my projects, so I am guessing this has to do with a newer release.

提交回复
热议问题