heroku/heroku-buildpack-google-chrome

--host-resolver-rules crashing application now

NemyaNation opened this issue · 0 comments

Following from my previous issue (thanks for replying btw..) #112

Running:

require 'selenium-webdriver'

options = Selenium::WebDriver::Chrome::Options.new(args: ['headless'])

driver = Selenium::WebDriver.for(:chrome, options: options)

driver.get('http://stackoverflow.com/')

puts "source: ",driver.page_source

driver.quit

works fine on heroku.


Running

require 'selenium-webdriver'

options = Selenium::WebDriver::Chrome::Options.new(args: [
	'headless',
	'host-resolver-rules=MAP stackoverflow.com 192.0.2.1'
])

driver = Selenium::WebDriver.for(:chrome, options: options)

driver.get('http://stackoverflow.com/')

puts "source: ",driver.page_source

(notice the added option host-resolver-rules) fails miserabley with error:

Selenium::WebDriver::Error::SessionNotCreatedError (session not created
from tab crashed
(Session info: headless chrome=93.0.4577.82)):