Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot init a driver #1934

Open
dann2333 opened this issue Jun 27, 2024 · 0 comments
Open

Cannot init a driver #1934

dann2333 opened this issue Jun 27, 2024 · 0 comments

Comments

@dann2333
Copy link

Hi, in this morning I suddenly met an error. It's listed below.

Traceback (most recent call last):
  File "C:\Users\danuonuo\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10054]

This error caused by this code:

def initBrowser():
    options = Options()
    options.add_argument('--proxy-server=http://127.0.0.1:10809')
    webDriver = uc.Chrome(options=options, headless=True)
    return webDriver

But I believe there's no error in it. My Chrome version is 126.0.6478.116 (64-bit) (cohort: Stable)
Is there any way to fix it? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant