heroku-buildpack-google-chrome icon indicating copy to clipboard operation
heroku-buildpack-google-chrome copied to clipboard

ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/115.0.5790/chromedriver_linux64.zip

Open Nitzan-hez opened this issue 2 years ago • 3 comments

Hi, I am working for long time with Selenium Google Chrome web driver, and received lately failure that I believe that related to heroku-buildpack-google-chrome, since on my local machine it works perfectly but deployment to Heroku not fail (started yesterday)

I receive the following error:

File "/app/.heroku/python/lib/python3.10/site-packages/webdriver_manager/core/http.py", line 33, in get self.validate_response(resp)

File "/app/.heroku/python/lib/python3.10/site-packages/webdriver_manager/core/http.py", line 16, in validate_response
raise ValueError(f"There is no such driver by url {resp.url}")

ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/115.0.5790/chromedriver_linux64.zip

The XML do not exist on URL https://chromedriver.storage.googleapis.com/115.0.5790/chromedriver_linux64.zip

I checked on my local server, and when I run the script the URL is different: https://chromedriver.storage.googleapis.com/LATEST_RELEASE_114.0.5735

How do I override the chromedriver version for Python webdriver?

Nitzan-hez avatar Jul 20 '23 08:07 Nitzan-hez

I have the same issue with my review apps, but using Ruby on Rails framework:

Webdrivers::VersionError: Unable to find latest point release version for 115.0.5790. You appear to be using a non-production version of Chrome. Please set 'Webdrivers::Chromedriver.required_version = <desired driver version>' to a known chromedriver version: https://chromedriver.storage.googleapis.com/index.html

Joining your issue then ;)

damianwieteska avatar Jul 20 '23 11:07 damianwieteska

Pinning to the latest version for us worked with Capybara as a short term fix

Webdrivers::Chromedriver.required_version = '114.0.5735.90'

TomVance avatar Jul 21 '23 10:07 TomVance

@damianwieteska

Same error!

If you are using not latest selenium-webdriver in Ruby on Rails, this issue could have something with gem versions.

  • https://github.com/titusfortner/webdrivers/issues/247

kdmgs110 avatar Jul 21 '23 23:07 kdmgs110