farraday errors installing webpacker with rails 5.1.5 and elasticsearch

67 views
Skip to first unread message

fugee ohu

unread,
Nov 23, 2019, 7:03:33 AM11/23/19
to Ruby on Rails: Talk
$ rails webpacker:install
rails aborted!
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: type is missing;2: type is missing;3: type is missing;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: type is missing;2: type is missing;3: type is missing;"},"status":400}
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:205:in `__raise_transport_error'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/base.rb:333:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/transport/http/faraday.rb:24:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-transport-7.4.0/lib/elasticsearch/transport/client.rb:152:in `perform_request'
/home/fugee/.rvm/gems/ruby-2.6.0/gems/elasticsearch-api-7.4.0/lib/elasticsearch/api/actions/bulk.rb:88:in `bulk'

Animatrix BD

unread,
Nov 25, 2019, 6:28:35 AM11/25/19
to Ruby on Rails: Talk
Have you installed "yarn"
brew install yarn
It worked for me

fugee ohu

unread,
Nov 25, 2019, 9:12:25 PM11/25/19
to Ruby on Rails: Talk
I had to download the deb and install that The apt installation had to be uninstalled
Reply all
Reply to author
Forward
0 new messages