При попытке запустить Chrome из Selenium WebDriver получаю ошибку Net::ReadTimeout.
Использую следующий стек:
- Ubuntu Server 18.10
- ChromeDriver (v2.9.248304)
- Google Chrome 72.0.3626.121
- ruby 2.5.1p57
Запускаю как обычно, следующим кодом:
require 'selenium-webdriver'
Selenium::WebDriver::Chrome.path = '/usr/bin/google-chrome'
options = Selenium::WebDriver::Chrome::Options.new
options.add_argument '--headless'
driver = Selenium::WebDriver.for :chrome, options: options
Последняя строчка выдаёт ошибку:
Traceback (most recent call last):
16: from /home/tit/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/bridge.rb:166:in `execute'
15: from /home/tit/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/common.rb:62:in `call'
14: from /home/tit/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/default.rb:76:in `request'
13: from /home/tit/.rvm/gems/ruby-2.5.1/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/http/default.rb:121:in `response_for'
12: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:1455:in `request'
11: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:910:in `start'
10: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:1457:in `block in request'
9: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:1464:in `request'
8: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:1491:in `transport_request'
7: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:1491:in `catch'
6: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http.rb:1494:in `block in transport_request'
5: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http/response.rb:29:in `read_new'
4: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/http/response.rb:40:in `read_status_line'
3: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/protocol.rb:167:in `readline'
2: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/protocol.rb:157:in `readuntil'
1: from /home/tit/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/net/protocol.rb:181:in `rbuf_fill'
Net::ReadTimeout (Net::ReadTimeout)
Кто-нить сталкивался с подобной ошибкой?
В какую сторону смотреть?