undetected-chromedriver
undetected-chromedriver copied to clipboard
ERR_SSL_UNRECOGNIZED_NAME_ALERT
Error
Traceback (most recent call last):
File "D:\coding\Python\Faucet\index.py", line 8, in <module>
driver.get('https://distilnetworks.com')
File "C:\Users\Himanshu\AppData\Roaming\Python\Python311\site-packages\undetected_chromedriver\__init__.py", line 665, in get
return super().get(url)
^^^^^^^^^^^^^^^^
File "C:\Users\Himanshu\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 356, in get
self.execute(Command.GET, {"url": url})
File "C:\Users\Himanshu\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\Himanshu\AppData\Roaming\Python\Python311\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_SSL_UNRECOGNIZED_NAME_ALERT
(Session info: chrome=119.0.6045.160)
Stacktrace:
GetHandleVerifier [0x003872A3+45731]
(No symbol) [0x00312D51]
(No symbol) [0x0020880D]
(No symbol) [0x0020508E]
(No symbol) [0x001FB4B2]
(No symbol) [0x001FC34F]
(No symbol) [0x001FB746]
(No symbol) [0x001FAAF8]
(No symbol) [0x001FAA9A]
(No symbol) [0x001F97F2]
(No symbol) [0x001F9ED8]
(No symbol) [0x0020A5B3]
(No symbol) [0x0026BD41]
(No symbol) [0x00257FDC]
(No symbol) [0x0026B7A2]
(No symbol) [0x00257DD6]
(No symbol) [0x002331F6]
(No symbol) [0x0023439D]
GetHandleVerifier [0x00690716+3229462]
GetHandleVerifier [0x006D84C8+3523784]
GetHandleVerifier [0x006D214C+3498316]
GetHandleVerifier [0x00411680+611968]
(No symbol) [0x0031CCCC]
(No symbol) [0x00318DF8]
(No symbol) [0x00318F1D]
(No symbol) [0x0030B2C7]
BaseThreadInitThunk [0x75D07BA9+25]
RtlInitializeExceptionChain [0x77D7BD2B+107]
RtlClearBits [0x77D7BCAF+191]
Exception ignored in: <function Chrome.__del__ at 0x000001E126440540>
Traceback (most recent call last):
File "C:\Users\Himanshu\AppData\Roaming\Python\Python311\site-packages\undetected_chromedriver\__init__.py", line 843, in __del__
File "C:\Users\Himanshu\AppData\Roaming\Python\Python311\site-packages\undetected_chromedriver\__init__.py", line 798, in quit
OSError: [WinError 6] The handle is invalid
Code
import undetected_chromedriver as uc
from time import sleep
driver = uc.Chrome()
driver.get('https://distilnetworks.com')
sleep(10)
driver.quit()
Why is this happening?
options = uc.ChromeOptions()
options.add_argument('--ignore-ssl-errors=yes')
options.add_argument('--ignore-certificate-errors')
driver = uc.Chrome(options=options)
try ignoring the ssl
No, it does fix the issue and the error stays the same