PhantomJS error


#1

When I run my scrape, it initially gives a PhantomJS warning:

You're running an old version of PhantomJS, update to >= 2.1.1 for a better experience.

Then, the script runs for about 5-10 minutes and then fails with a PhantomJS error:

/app/vendor/bundle/ruby/2.4.0/gems/poltergeist-1.15.0/lib/capybara/poltergeist/server.rb:43:in `send': PhantomJS client died while processing {"id":"909b4adc-d5f2-483a-986f-67884fa7acea","name":"visit","args":["https://www.martindale.com/search/attorneys?term=michigan&page=10",300]} (Capybara::Poltergeist::DeadClient)
from /app/vendor/bundle/ruby/2.4.0/gems/poltergeist-1.15.0/lib/capybara/poltergeist/browser.rb:370:in `command'
from /app/vendor/bundle/ruby/2.4.0/gems/poltergeist-1.15.0/lib/capybara/poltergeist/browser.rb:36:in `visit'
from /app/vendor/bundle/ruby/2.4.0/gems/poltergeist-1.15.0/lib/capybara/poltergeist/driver.rb:97:in `visit'
from /app/vendor/bundle/ruby/2.4.0/gems/capybara-2.14.3/lib/capybara/session.rb:269:in `visit'
from scraper.rb:11:in `<main>'