Skip to content

Commit

Permalink
Gemfile: ⬇️ gem 'elasticsearch'
Browse files Browse the repository at this point in the history
Newer versions of the elasticsearch Gem do not communicate with Bonsai
as they are not an official Elastic product, and instead raise the
following error:

    /app/vendor/bundle/ruby/3.1.0/gems/elasticsearch-8.15.0/lib/elasticsearch.rb:103:in `verify_elasticsearch': The client noticed that the server is not Elasticsearch and we do not support this unknown product. (Elasticsearch::UnsupportedProductError)

Downgrade to the highest supported version per this[1] guide from
Bonsai.

[1]: https://bonsai.io/docs/ruby-on-rails

Singed-off-by: Taylor Blau <[email protected]>
  • Loading branch information
ttaylorr committed Sep 6, 2024
1 parent 3772b8d commit 45a7da2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem 'net-pop', require: false
gem 'net-smtp', require: false

gem "asciidoctor", "~> 2.0.0"
gem "elasticsearch", "8.15.0"
gem "elasticsearch", "7.13"
gem "iso8601"
gem "octokit"
gem "puma"
Expand Down
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ GEM
dotenv-rails (2.7.6)
dotenv (= 2.7.6)
railties (>= 3.2)
elastic-transport (8.3.5)
faraday (< 3)
elasticsearch (7.13.0)
elasticsearch-api (= 7.13.0)
elasticsearch-transport (= 7.13.0)
elasticsearch-api (7.13.0)
multi_json
elasticsearch (8.15.0)
elastic-transport (~> 8.3)
elasticsearch-api (= 8.15.0)
elasticsearch-api (8.15.0)
elasticsearch-transport (7.13.0)
faraday (~> 1)
multi_json
erubi (1.12.0)
execjs (2.8.1)
Expand Down Expand Up @@ -355,7 +355,7 @@ DEPENDENCIES
database_cleaner
diffy
dotenv-rails
elasticsearch (= 8.15.0)
elasticsearch (= 7.13)
fabrication
factory_bot_rails
foreman
Expand Down

0 comments on commit 45a7da2

Please sign in to comment.