Dealing with 503 errors when testing Elasticsearch integration in Rails

Elasticsearch::Transport::Transport::Errors::ServiceUnavailable: [503]
Searching didn’t taste so good mixed with failing builds
before do
repository.create_index!
repository.client.cluster.health wait_for_status: ‘yellow’
end

--

--

Maker of software and soft cheese. Dev at cogent.co , organiser of RubyConf AU 2018 & 2017.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store