Faraday::Error::ConnectionFailedエラーの解消

エラー

1
2
3
rake aborted!  
NameError: uninitialized constant Faraday::Error::ConnectionFailed
Did you mean? Faraday::ConnectionFailed

解決策

1
2
3
4
5
6
7
# cdする先のディレクトリは人によって違う。下のコマンドで確認できる。
# bundle show rails
cd /Users/hoge/.rbenv/versions/3.0.5/lib/ruby/gems/3.0.0/gems
grep -r "Faraday::Error::" .
sed -i '' 's/Faraday::Error::/Faraday::/g' ./elasticsearch-api-7.4.0/Rakefile
sed -i '' 's/Faraday::Error::/Faraday::/g' ./elasticsearch-transport-7.4.0/spec/elasticsearch/transport/client_spec.rb
sed -i '' 's/Faraday::Error::/Faraday::/g' ./elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/http/faraday.rb
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×