ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.06k stars 1.09k forks source link

Undetected chromedriver is not picking the right chrome version #1068

Open lazarostso opened 1 year ago

lazarostso commented 1 year ago

Hello! I am facing a very strange problem with UC new version. My chromedriver version is 110.0.5481.77 My chrome version is 110.0.5481.77 I have the latest UC version (3.4.5) and i am getting the following error:

Message: unknown error: cannot connect to chrome at 127.0.0.1:59251 from session not created: This version of ChromeDriver only supports Chrome version 110 Current browser version is 90.0.4430.212 Stacktrace:

0 0x55c18673dd93

1 0x55c18650c2d7

2 0x55c1865392f4

3 0x55c1865302fc

4 0x55c1865754f4

5 0x55c18656c353

6 0x55c18653be40

7 0x55c18653d038

8 0x55c1867918be

9 0x55c1867958f0

10 0x55c186775f90

11 0x55c186796b7d

12 0x55c186767578

13 0x55c1867bb348

14 0x55c1867bb4d6

15 0x55c1867d5341

16 0x7efc58f85ea5 start_thread

I tried to use headless mode (--headless) and also tried to use --headless=new. I have tried the same thing by adding --no-sandbox and then remove it again. I also tried to run the script without headless mode by using PyVirtualDisplay.

Every try and combination of all these gave me the same error message.

Note: Before every try i clean all the session files and cookies.

Any idea?

7574 commented 1 year ago

Had the exact same problem. The fix for me was just updating google chrome at chrome://settings/help

lazarostso commented 1 year ago

Unfortunately, i have everything up to date.

SDU1910 commented 1 year ago

Hi, i'm getting the same problem than the one described by @lazarostso. On linux too.

My chromedriver version is 110.0.5481.77 My chrome version is 110.0.5481.77 I have the latest UC version (3.4.5) and i am getting the following error:

Message: unknown error: cannot connect to chrome at 127.0.0.1:40639 from session not created: This version of ChromeDriver only supports Chrome version 110 Current browser version is 109.0.5414.119 Stacktrace:

0 0x55e3b3dc5d93

1 0x55e3b3b942d7

2 0x55e3b3bc12f4

3 0x55e3b3bb82fc

4 0x55e3b3bfd4f4

5 0x55e3b3bf4353

6 0x55e3b3bc3e40

7 0x55e3b3bc5038

8 0x55e3b3e198be

9 0x55e3b3e1d8f0

10 0x55e3b3dfdf90

11 0x55e3b3e1eb7d

12 0x55e3b3def578

13 0x55e3b3e43348

14 0x55e3b3e434d6

15 0x55e3b3e5d341

16 0x7f213f399609 start_thread

ultrafunkamsterdam commented 1 year ago

how often do i need say this again. if you are not up to date with chrome, specify your version!

driver = uc.Chrome(version_main=109)