selenium: [πŸ› Bug]: ERROR error sending request for url (https://chromedriver.storage.googleapis.com/LATEST_RELEASE_108): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer

What happened?

Dec 10, 2022 1:30:28 PM org.openqa.selenium.remote.service.DriverService findExecutable WARNING: Unable to obtain driver using Selenium Manager: Unsuccessful command executed: [C:\Users<user>\AppData\Local\Temp\selenium-manager17283176393723006992415082342136659\selenium-manager.exe, --driver, chromedriver] WARN Sending fatal alert BadCertificate ERROR error sending request for url (https://chromedriver.storage.googleapis.com/LATEST_RELEASE_108): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer

Build info: version: β€˜4.7.1’, revision: β€˜c6795baf1a3’ System info: os.name: β€˜Windows 10’, os.arch: β€˜x86’, os.version: β€˜10.0’, java.version: β€˜1.8.0_341’ Driver info: driver.version: unknown

How can we reproduce the issue?

Using Selenium Manager 4.7.1 to launch chrome v108

Relevant log output

Dec 10, 2022 1:30:28 PM org.openqa.selenium.remote.service.DriverService findExecutable
WARNING: Unable to obtain driver using Selenium Manager: Unsuccessful command executed: [C:\Users\<user>\AppData\Local\Temp\selenium-manager17283176393723006992415082342136659\selenium-manager.exe, --driver, chromedriver]
WARN	Sending fatal alert BadCertificate
ERROR	error sending request for url (https://chromedriver.storage.googleapis.com/LATEST_RELEASE_108): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer

Build info: version: '4.7.1', revision: 'c6795baf1a3'
System info: os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_341'
Driver info: driver.version: unknown

Operating System

Windows

Selenium version

4.7.1

What are the browser(s) and version(s) where you see this issue?

chrome 108

What are the browser driver(s) and version(s) where you see this issue?

NA

Are you using Selenium Grid?

4.7.1

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 29 (12 by maintainers)

Most upvoted comments

Great, thanks a lot, @vicozohili. It seems the new change fixes the issue.

I have just created a PR about it (#11449). It will be available for the next version of Selenium.

Thank you @titusfortner above step resolved issue.

@patilpratikn can you download the latest version from here https://github.com/SeleniumHQ/selenium/blob/trunk/common/manager/windows/selenium-manager.exe

and run:

selenium-manager.exe --browser chrome --debug --clear-cache

I have any issue like this in selenium 4.8.0, but I sove it in the following way.

The issue occured mainly because you could not connet the Internet, for example, you are in a local network which could not connect the Internet but only some local services.

To solve it, you can install the browser webdriver, let’s use the chrome as an example, you can also refers this:

  1. Clear cache in C:/Users/yourusername/.cache/selenium
  2. Download the webdriver, refers this;
  3. Use the webdriver in this way:
    from selenium.webdriver.chrome.service import Service
    from selenium import webdriver
    
    service = Service(executable_path="/path/to/chromedriver.exe")
    driver = webdriver.Chrome(service=service)