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

Exception: Error getting browser User-Agent. <urlopen error [WinError 10054] #1119

Open
4 tasks done
xueli12 opened this issue Mar 11, 2024 · 13 comments
Open
4 tasks done
Labels
help wanted Extra attention is needed needs investigation

Comments

@xueli12
Copy link

xueli12 commented Mar 11, 2024

Have you checked our README?

  • I have checked the README

Have you followed our Troubleshooting?

  • I have followed your Troubleshooting

Is there already an issue for your problem?

  • I have checked older issues, open and closed

Have you checked the discussions?

  • I have read the Discussions

Environment

- FlareSolverr version: 3.3.16
- Last working FlareSolverr version: 3.3.16
- Operating system: win10
- Are you using Docker: no
- FlareSolverr User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 
- Are you using a VPN: no
- Are you using a Proxy: no
- Are you using Captcha Solver: no
- URL to test this issue:https://www.baidu.com

Description

Since I am in China, I may not be able to access most websites from other countries.When I don't turn on the system proxy, launching the flaresolverr service results in the error below, and it does not pass the test.
When I use Clash to turn on the system proxy , running flaresolverr can pass the test, after which I shut down the system proxy and flaresolverr can function normally.I have already set the environment variable TEST_URL to a URL that our country can access, but it is still ineffective, TEST_URL=https://www.baidu.com/. I used the following batch script:

@echo off
set LOG_LEVEL=debug
set LANG=en_GB
set HEADLESS=true
set TEST_URL=https://www.baidu.com
python src/flaresolverr.py

no system proxy.Flaresolverr encounters an error:
image

Enable the system proxy using Clash.Then flaresolverr can run:
}0A8~F(8)8NKZNRZV1CSOZJ

As I'm located in China, I might face difficulties accessing a majority of websites from other nations.Upon not activating the system proxy, I encounter an error when initiating the flaresolverr service, preventing it from passing the tests.However, once I activate the system proxy using Clash, flaresolverr seems to successfully pass the tests. Subsequently, on disabling the system proxy, flaresolverr continues to operate as expected.I have already set the environment variable TEST_URL to a URL that our country can access, but it is still ineffective, TEST_URL=https://www.baidu.com/.

Logged Error Messages

λ E:\批量移动文件python\FlareSolverr-3.3.16\start.bat
2024-03-12 01:48:03 INFO     ReqId 33280 FlareSolverr 3.3.16
2024-03-12 01:48:03 DEBUG    ReqId 33280 Debug log enabled
2024-03-12 01:48:03 INFO     ReqId 33280 Testing web browser installation...
2024-03-12 01:48:03 INFO     ReqId 33280 Platform: Windows-10-10.0.19045-SP0
2024-03-12 01:48:04 INFO     ReqId 33280 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-12 01:48:04 INFO     ReqId 33280 Chrome / Chromium major version: 122
2024-03-12 01:48:04 INFO     ReqId 33280 Launching web browser...
2024-03-12 01:48:04 DEBUG    ReqId 33280 Launching web browser...
2024-03-12 01:48:04 ERROR    ReqId 33280 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value

Screenshots

image

@ilike2burnthing
Copy link
Contributor

Try several other test URLs.

@ilike2burnthing ilike2burnthing added the more information needed Further information is requested label Mar 13, 2024
@xueli12
Copy link
Author

xueli12 commented Mar 15, 2024

I have tried 50 test URLs, but none of them passed the test. @ilike2burnthing
bat:

@echo off
setlocal enabledelayedexpansion

set LOG_LEVEL=debug
set LANG=en_GB
set HEADLESS=true

for /f "tokens=*" %%i in (list.txt) do (
    echo Executing URL: %%i
    set TEST_URL=%%i
    python src/flaresolverr.py
    if ERRORLEVEL 1 (
        echo Error occurred while executing URL %%i, skipping...
    )
)
endlocal

test URLS:

https://www.baidu.com
https://www.sina.com.cn
https://www.qq.com
https://www.taobao.com
https://www.tmall.com
https://www.163.com
https://www.sohu.com
https://www.jd.com
https://www.weibo.com
https://www.zhihu.com
https://www.douyin.com
https://www.ctrip.com
https://www.pinduoduo.com
https://www.xinhuanet.com
https://www.people.com.cn
https://www.gmw.cn
https://www.ifeng.com
https://www.youku.com
https://www.bilibili.com
https://www.douban.com
https://www.meituan.com
https://www.suning.com
https://www.autohome.com.cn
https://www.58.com
https://www.eastmoney.com
https://www.iqiyi.com
https://www.vip.com
https://www.hao123.com
https://www.mi.com
https://www.360.cn
https://www.sogou.com
https://www.huya.com
https://www.dji.com
https://www.kuaishou.com
https://www.gome.com.cn
https://www.10086.cn
https://www.10010.com
https://www.189.cn
https://www.ccb.com
https://www.icbc.com.cn
https://www.bankcomm.com
https://www.psbc.com
https://www.cebbank.com
https://www.cmbchina.com
https://www.spdb.com.cn
https://www.toutiao.com
https://www.mafengwo.cn
https://www.qyer.com
https://www.zol.com.cn
https://www.9game.cn

Logged Error Messages

  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.youku.com, skipping...
Executing URL: https://www.bilibili.com
2024-03-15 15:27:20 INFO     ReqId 23160 FlareSolverr 3.3.16
2024-03-15 15:27:20 DEBUG    ReqId 23160 Debug log enabled
2024-03-15 15:27:20 INFO     ReqId 23160 Testing web browser installation...
2024-03-15 15:27:20 INFO     ReqId 23160 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:20 INFO     ReqId 23160 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:20 INFO     ReqId 23160 Chrome / Chromium major version: 122
2024-03-15 15:27:20 INFO     ReqId 23160 Launching web browser...
2024-03-15 15:27:20 DEBUG    ReqId 23160 Launching web browser...
2024-03-15 15:27:22 ERROR    ReqId 23160 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.bilibili.com, skipping...
Executing URL: https://www.douban.com
2024-03-15 15:27:23 INFO     ReqId 26196 FlareSolverr 3.3.16
2024-03-15 15:27:23 DEBUG    ReqId 26196 Debug log enabled
2024-03-15 15:27:23 INFO     ReqId 26196 Testing web browser installation...
2024-03-15 15:27:23 INFO     ReqId 26196 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:23 INFO     ReqId 26196 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:23 INFO     ReqId 26196 Chrome / Chromium major version: 122
2024-03-15 15:27:23 INFO     ReqId 26196 Launching web browser...
2024-03-15 15:27:23 DEBUG    ReqId 26196 Launching web browser...
2024-03-15 15:27:25 ERROR    ReqId 26196 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.douban.com, skipping...
Executing URL: https://www.meituan.com
2024-03-15 15:27:26 INFO     ReqId 25320 FlareSolverr 3.3.16
2024-03-15 15:27:26 DEBUG    ReqId 25320 Debug log enabled
2024-03-15 15:27:26 INFO     ReqId 25320 Testing web browser installation...
2024-03-15 15:27:26 INFO     ReqId 25320 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:26 INFO     ReqId 25320 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:26 INFO     ReqId 25320 Chrome / Chromium major version: 122
2024-03-15 15:27:26 INFO     ReqId 25320 Launching web browser...
2024-03-15 15:27:26 DEBUG    ReqId 25320 Launching web browser...
2024-03-15 15:27:27 ERROR    ReqId 25320 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.meituan.com, skipping...
Executing URL: https://www.suning.com
2024-03-15 15:27:28 INFO     ReqId 2500 FlareSolverr 3.3.16
2024-03-15 15:27:28 DEBUG    ReqId 2500 Debug log enabled
2024-03-15 15:27:28 INFO     ReqId 2500 Testing web browser installation...
2024-03-15 15:27:28 INFO     ReqId 2500 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:28 INFO     ReqId 2500 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:28 INFO     ReqId 2500 Chrome / Chromium major version: 122
2024-03-15 15:27:28 INFO     ReqId 2500 Launching web browser...
2024-03-15 15:27:28 DEBUG    ReqId 2500 Launching web browser...
2024-03-15 15:27:31 ERROR    ReqId 2500 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.suning.com, skipping...
Executing URL: https://www.autohome.com.cn
2024-03-15 15:27:32 INFO     ReqId 9544 FlareSolverr 3.3.16
2024-03-15 15:27:32 DEBUG    ReqId 9544 Debug log enabled
2024-03-15 15:27:32 INFO     ReqId 9544 Testing web browser installation...
2024-03-15 15:27:32 INFO     ReqId 9544 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:32 INFO     ReqId 9544 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:32 INFO     ReqId 9544 Chrome / Chromium major version: 122
2024-03-15 15:27:32 INFO     ReqId 9544 Launching web browser...
2024-03-15 15:27:32 DEBUG    ReqId 9544 Launching web browser...
2024-03-15 15:27:33 ERROR    ReqId 9544 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.autohome.com.cn, skipping...
Executing URL: https://www.58.com
2024-03-15 15:27:35 INFO     ReqId 19132 FlareSolverr 3.3.16
2024-03-15 15:27:35 DEBUG    ReqId 19132 Debug log enabled
2024-03-15 15:27:35 INFO     ReqId 19132 Testing web browser installation...
2024-03-15 15:27:35 INFO     ReqId 19132 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:35 INFO     ReqId 19132 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:35 INFO     ReqId 19132 Chrome / Chromium major version: 122
2024-03-15 15:27:35 INFO     ReqId 19132 Launching web browser...
2024-03-15 15:27:35 DEBUG    ReqId 19132 Launching web browser...
2024-03-15 15:27:36 ERROR    ReqId 19132 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.58.com, skipping...
Executing URL: https://www.eastmoney.com
2024-03-15 15:27:37 INFO     ReqId 23092 FlareSolverr 3.3.16
2024-03-15 15:27:37 DEBUG    ReqId 23092 Debug log enabled
2024-03-15 15:27:37 INFO     ReqId 23092 Testing web browser installation...
2024-03-15 15:27:37 INFO     ReqId 23092 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:37 INFO     ReqId 23092 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:37 INFO     ReqId 23092 Chrome / Chromium major version: 122
2024-03-15 15:27:37 INFO     ReqId 23092 Launching web browser...
2024-03-15 15:27:37 DEBUG    ReqId 23092 Launching web browser...
2024-03-15 15:27:39 ERROR    ReqId 23092 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.eastmoney.com, skipping...
Executing URL: https://www.iqiyi.com
2024-03-15 15:27:40 INFO     ReqId 19212 FlareSolverr 3.3.16
2024-03-15 15:27:40 DEBUG    ReqId 19212 Debug log enabled
2024-03-15 15:27:40 INFO     ReqId 19212 Testing web browser installation...
2024-03-15 15:27:41 INFO     ReqId 19212 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:41 INFO     ReqId 19212 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:41 INFO     ReqId 19212 Chrome / Chromium major version: 122
2024-03-15 15:27:41 INFO     ReqId 19212 Launching web browser...
2024-03-15 15:27:41 DEBUG    ReqId 19212 Launching web browser...
2024-03-15 15:27:42 ERROR    ReqId 19212 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.iqiyi.com, skipping...
Executing URL: https://www.vip.com
2024-03-15 15:27:43 INFO     ReqId 23096 FlareSolverr 3.3.16
2024-03-15 15:27:43 DEBUG    ReqId 23096 Debug log enabled
2024-03-15 15:27:43 INFO     ReqId 23096 Testing web browser installation...
2024-03-15 15:27:43 INFO     ReqId 23096 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:43 INFO     ReqId 23096 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:43 INFO     ReqId 23096 Chrome / Chromium major version: 122
2024-03-15 15:27:43 INFO     ReqId 23096 Launching web browser...
2024-03-15 15:27:43 DEBUG    ReqId 23096 Launching web browser...
2024-03-15 15:27:46 ERROR    ReqId 23096 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.vip.com, skipping...
Executing URL: https://www.hao123.com
2024-03-15 15:27:47 INFO     ReqId 21272 FlareSolverr 3.3.16
2024-03-15 15:27:47 DEBUG    ReqId 21272 Debug log enabled
2024-03-15 15:27:47 INFO     ReqId 21272 Testing web browser installation...
2024-03-15 15:27:47 INFO     ReqId 21272 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:47 INFO     ReqId 21272 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:47 INFO     ReqId 21272 Chrome / Chromium major version: 122
2024-03-15 15:27:47 INFO     ReqId 21272 Launching web browser...
2024-03-15 15:27:47 DEBUG    ReqId 21272 Launching web browser...
2024-03-15 15:27:49 ERROR    ReqId 21272 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.hao123.com, skipping...
Executing URL: https://www.mi.com
2024-03-15 15:27:50 INFO     ReqId 12516 FlareSolverr 3.3.16
2024-03-15 15:27:50 DEBUG    ReqId 12516 Debug log enabled
2024-03-15 15:27:50 INFO     ReqId 12516 Testing web browser installation...
2024-03-15 15:27:51 INFO     ReqId 12516 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:51 INFO     ReqId 12516 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:51 INFO     ReqId 12516 Chrome / Chromium major version: 122
2024-03-15 15:27:51 INFO     ReqId 12516 Launching web browser...
2024-03-15 15:27:51 DEBUG    ReqId 12516 Launching web browser...
2024-03-15 15:27:52 ERROR    ReqId 12516 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.mi.com, skipping...
Executing URL: https://www.360.cn
2024-03-15 15:27:53 INFO     ReqId 4608 FlareSolverr 3.3.16
2024-03-15 15:27:53 DEBUG    ReqId 4608 Debug log enabled
2024-03-15 15:27:53 INFO     ReqId 4608 Testing web browser installation...
2024-03-15 15:27:53 INFO     ReqId 4608 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:53 INFO     ReqId 4608 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:53 INFO     ReqId 4608 Chrome / Chromium major version: 122
2024-03-15 15:27:53 INFO     ReqId 4608 Launching web browser...
2024-03-15 15:27:53 DEBUG    ReqId 4608 Launching web browser...
2024-03-15 15:27:55 ERROR    ReqId 4608 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.360.cn, skipping...
Executing URL: https://www.sogou.com
2024-03-15 15:27:56 INFO     ReqId 29648 FlareSolverr 3.3.16
2024-03-15 15:27:56 DEBUG    ReqId 29648 Debug log enabled
2024-03-15 15:27:56 INFO     ReqId 29648 Testing web browser installation...
2024-03-15 15:27:56 INFO     ReqId 29648 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:27:56 INFO     ReqId 29648 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:27:56 INFO     ReqId 29648 Chrome / Chromium major version: 122
2024-03-15 15:27:56 INFO     ReqId 29648 Launching web browser...
2024-03-15 15:27:56 DEBUG    ReqId 29648 Launching web browser...
2024-03-15 15:27:58 ERROR    ReqId 29648 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.sogou.com, skipping...
Executing URL: https://www.huya.com
2024-03-15 15:28:00 INFO     ReqId 2040 FlareSolverr 3.3.16
2024-03-15 15:28:00 DEBUG    ReqId 2040 Debug log enabled
2024-03-15 15:28:00 INFO     ReqId 2040 Testing web browser installation...
2024-03-15 15:28:00 INFO     ReqId 2040 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:00 INFO     ReqId 2040 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:00 INFO     ReqId 2040 Chrome / Chromium major version: 122
2024-03-15 15:28:00 INFO     ReqId 2040 Launching web browser...
2024-03-15 15:28:00 DEBUG    ReqId 2040 Launching web browser...
2024-03-15 15:28:02 ERROR    ReqId 2040 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.huya.com, skipping...
Executing URL: https://www.dji.com
2024-03-15 15:28:03 INFO     ReqId 15040 FlareSolverr 3.3.16
2024-03-15 15:28:03 DEBUG    ReqId 15040 Debug log enabled
2024-03-15 15:28:03 INFO     ReqId 15040 Testing web browser installation...
2024-03-15 15:28:03 INFO     ReqId 15040 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:03 INFO     ReqId 15040 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:03 INFO     ReqId 15040 Chrome / Chromium major version: 122
2024-03-15 15:28:03 INFO     ReqId 15040 Launching web browser...
2024-03-15 15:28:03 DEBUG    ReqId 15040 Launching web browser...
2024-03-15 15:28:05 ERROR    ReqId 15040 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.dji.com, skipping...
Executing URL: https://www.kuaishou.com
2024-03-15 15:28:06 INFO     ReqId 5140 FlareSolverr 3.3.16
2024-03-15 15:28:06 DEBUG    ReqId 5140 Debug log enabled
2024-03-15 15:28:06 INFO     ReqId 5140 Testing web browser installation...
2024-03-15 15:28:06 INFO     ReqId 5140 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:06 INFO     ReqId 5140 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:06 INFO     ReqId 5140 Chrome / Chromium major version: 122
2024-03-15 15:28:06 INFO     ReqId 5140 Launching web browser...
2024-03-15 15:28:06 DEBUG    ReqId 5140 Launching web browser...
2024-03-15 15:28:08 ERROR    ReqId 5140 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.kuaishou.com, skipping...
Executing URL: https://www.gome.com.cn
2024-03-15 15:28:09 INFO     ReqId 21948 FlareSolverr 3.3.16
2024-03-15 15:28:09 DEBUG    ReqId 21948 Debug log enabled
2024-03-15 15:28:09 INFO     ReqId 21948 Testing web browser installation...
2024-03-15 15:28:09 INFO     ReqId 21948 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:09 INFO     ReqId 21948 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:09 INFO     ReqId 21948 Chrome / Chromium major version: 122
2024-03-15 15:28:09 INFO     ReqId 21948 Launching web browser...
2024-03-15 15:28:09 DEBUG    ReqId 21948 Launching web browser...
2024-03-15 15:28:11 ERROR    ReqId 21948 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.gome.com.cn, skipping...
Executing URL: https://www.10086.cn
2024-03-15 15:28:12 INFO     ReqId 5644 FlareSolverr 3.3.16
2024-03-15 15:28:12 DEBUG    ReqId 5644 Debug log enabled
2024-03-15 15:28:12 INFO     ReqId 5644 Testing web browser installation...
2024-03-15 15:28:12 INFO     ReqId 5644 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:12 INFO     ReqId 5644 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:12 INFO     ReqId 5644 Chrome / Chromium major version: 122
2024-03-15 15:28:12 INFO     ReqId 5644 Launching web browser...
2024-03-15 15:28:12 DEBUG    ReqId 5644 Launching web browser...
2024-03-15 15:28:14 ERROR    ReqId 5644 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.10086.cn, skipping...
Executing URL: https://www.10010.com
2024-03-15 15:28:15 INFO     ReqId 7696 FlareSolverr 3.3.16
2024-03-15 15:28:15 DEBUG    ReqId 7696 Debug log enabled
2024-03-15 15:28:15 INFO     ReqId 7696 Testing web browser installation...
2024-03-15 15:28:15 INFO     ReqId 7696 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:15 INFO     ReqId 7696 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:15 INFO     ReqId 7696 Chrome / Chromium major version: 122
2024-03-15 15:28:15 INFO     ReqId 7696 Launching web browser...
2024-03-15 15:28:15 DEBUG    ReqId 7696 Launching web browser...
2024-03-15 15:28:16 ERROR    ReqId 7696 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.10010.com, skipping...
Executing URL: https://www.189.cn
2024-03-15 15:28:18 INFO     ReqId 2592 FlareSolverr 3.3.16
2024-03-15 15:28:18 DEBUG    ReqId 2592 Debug log enabled
2024-03-15 15:28:18 INFO     ReqId 2592 Testing web browser installation...
2024-03-15 15:28:18 INFO     ReqId 2592 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:18 INFO     ReqId 2592 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:18 INFO     ReqId 2592 Chrome / Chromium major version: 122
2024-03-15 15:28:18 INFO     ReqId 2592 Launching web browser...
2024-03-15 15:28:18 DEBUG    ReqId 2592 Launching web browser...
2024-03-15 15:28:20 ERROR    ReqId 2592 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.189.cn, skipping...
Executing URL: https://www.ccb.com
2024-03-15 15:28:21 INFO     ReqId 14656 FlareSolverr 3.3.16
2024-03-15 15:28:21 DEBUG    ReqId 14656 Debug log enabled
2024-03-15 15:28:21 INFO     ReqId 14656 Testing web browser installation...
2024-03-15 15:28:21 INFO     ReqId 14656 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:21 INFO     ReqId 14656 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:21 INFO     ReqId 14656 Chrome / Chromium major version: 122
2024-03-15 15:28:21 INFO     ReqId 14656 Launching web browser...
2024-03-15 15:28:21 DEBUG    ReqId 14656 Launching web browser...
2024-03-15 15:28:22 ERROR    ReqId 14656 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.ccb.com, skipping...
Executing URL: https://www.icbc.com.cn
2024-03-15 15:28:23 INFO     ReqId 3532 FlareSolverr 3.3.16
2024-03-15 15:28:23 DEBUG    ReqId 3532 Debug log enabled
2024-03-15 15:28:23 INFO     ReqId 3532 Testing web browser installation...
2024-03-15 15:28:23 INFO     ReqId 3532 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:23 INFO     ReqId 3532 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:23 INFO     ReqId 3532 Chrome / Chromium major version: 122
2024-03-15 15:28:23 INFO     ReqId 3532 Launching web browser...
2024-03-15 15:28:23 DEBUG    ReqId 3532 Launching web browser...
2024-03-15 15:28:26 ERROR    ReqId 3532 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.icbc.com.cn, skipping...
Executing URL: https://www.bankcomm.com
2024-03-15 15:28:27 INFO     ReqId 4680 FlareSolverr 3.3.16
2024-03-15 15:28:27 DEBUG    ReqId 4680 Debug log enabled
2024-03-15 15:28:27 INFO     ReqId 4680 Testing web browser installation...
2024-03-15 15:28:27 INFO     ReqId 4680 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:27 INFO     ReqId 4680 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:27 INFO     ReqId 4680 Chrome / Chromium major version: 122
2024-03-15 15:28:27 INFO     ReqId 4680 Launching web browser...
2024-03-15 15:28:27 DEBUG    ReqId 4680 Launching web browser...
2024-03-15 15:28:29 ERROR    ReqId 4680 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.bankcomm.com, skipping...
Executing URL: https://www.psbc.com
2024-03-15 15:28:30 INFO     ReqId 28652 FlareSolverr 3.3.16
2024-03-15 15:28:30 DEBUG    ReqId 28652 Debug log enabled
2024-03-15 15:28:30 INFO     ReqId 28652 Testing web browser installation...
2024-03-15 15:28:30 INFO     ReqId 28652 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:30 INFO     ReqId 28652 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:30 INFO     ReqId 28652 Chrome / Chromium major version: 122
2024-03-15 15:28:30 INFO     ReqId 28652 Launching web browser...
2024-03-15 15:28:30 DEBUG    ReqId 28652 Launching web browser...
2024-03-15 15:28:33 ERROR    ReqId 28652 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.psbc.com, skipping...
Executing URL: https://www.cebbank.com
2024-03-15 15:28:34 INFO     ReqId 19104 FlareSolverr 3.3.16
2024-03-15 15:28:34 DEBUG    ReqId 19104 Debug log enabled
2024-03-15 15:28:34 INFO     ReqId 19104 Testing web browser installation...
2024-03-15 15:28:34 INFO     ReqId 19104 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:34 INFO     ReqId 19104 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:34 INFO     ReqId 19104 Chrome / Chromium major version: 122
2024-03-15 15:28:34 INFO     ReqId 19104 Launching web browser...
2024-03-15 15:28:34 DEBUG    ReqId 19104 Launching web browser...
2024-03-15 15:28:36 ERROR    ReqId 19104 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.cebbank.com, skipping...
Executing URL: https://www.cmbchina.com
2024-03-15 15:28:37 INFO     ReqId 24612 FlareSolverr 3.3.16
2024-03-15 15:28:37 DEBUG    ReqId 24612 Debug log enabled
2024-03-15 15:28:37 INFO     ReqId 24612 Testing web browser installation...
2024-03-15 15:28:37 INFO     ReqId 24612 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:37 INFO     ReqId 24612 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:37 INFO     ReqId 24612 Chrome / Chromium major version: 122
2024-03-15 15:28:37 INFO     ReqId 24612 Launching web browser...
2024-03-15 15:28:37 DEBUG    ReqId 24612 Launching web browser...
2024-03-15 15:28:40 ERROR    ReqId 24612 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.cmbchina.com, skipping...
Executing URL: https://www.spdb.com.cn
2024-03-15 15:28:41 INFO     ReqId 1448 FlareSolverr 3.3.16
2024-03-15 15:28:41 DEBUG    ReqId 1448 Debug log enabled
2024-03-15 15:28:41 INFO     ReqId 1448 Testing web browser installation...
2024-03-15 15:28:41 INFO     ReqId 1448 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:41 INFO     ReqId 1448 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:41 INFO     ReqId 1448 Chrome / Chromium major version: 122
2024-03-15 15:28:41 INFO     ReqId 1448 Launching web browser...
2024-03-15 15:28:41 DEBUG    ReqId 1448 Launching web browser...
2024-03-15 15:28:43 ERROR    ReqId 1448 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.spdb.com.cn, skipping...
Executing URL: https://www.toutiao.com
2024-03-15 15:28:44 INFO     ReqId 26520 FlareSolverr 3.3.16
2024-03-15 15:28:44 DEBUG    ReqId 26520 Debug log enabled
2024-03-15 15:28:44 INFO     ReqId 26520 Testing web browser installation...
2024-03-15 15:28:44 INFO     ReqId 26520 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:44 INFO     ReqId 26520 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:44 INFO     ReqId 26520 Chrome / Chromium major version: 122
2024-03-15 15:28:44 INFO     ReqId 26520 Launching web browser...
2024-03-15 15:28:44 DEBUG    ReqId 26520 Launching web browser...
2024-03-15 15:28:45 ERROR    ReqId 26520 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.toutiao.com, skipping...
Executing URL: https://www.mafengwo.cn
2024-03-15 15:28:46 INFO     ReqId 24468 FlareSolverr 3.3.16
2024-03-15 15:28:46 DEBUG    ReqId 24468 Debug log enabled
2024-03-15 15:28:46 INFO     ReqId 24468 Testing web browser installation...
2024-03-15 15:28:47 INFO     ReqId 24468 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:47 INFO     ReqId 24468 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:47 INFO     ReqId 24468 Chrome / Chromium major version: 122
2024-03-15 15:28:47 INFO     ReqId 24468 Launching web browser...
2024-03-15 15:28:47 DEBUG    ReqId 24468 Launching web browser...
2024-03-15 15:28:48 ERROR    ReqId 24468 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.mafengwo.cn, skipping...
Executing URL: https://www.qyer.com
2024-03-15 15:28:49 INFO     ReqId 9756 FlareSolverr 3.3.16
2024-03-15 15:28:49 DEBUG    ReqId 9756 Debug log enabled
2024-03-15 15:28:49 INFO     ReqId 9756 Testing web browser installation...
2024-03-15 15:28:49 INFO     ReqId 9756 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:49 INFO     ReqId 9756 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:49 INFO     ReqId 9756 Chrome / Chromium major version: 122
2024-03-15 15:28:49 INFO     ReqId 9756 Launching web browser...
2024-03-15 15:28:49 DEBUG    ReqId 9756 Launching web browser...
2024-03-15 15:28:51 ERROR    ReqId 9756 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.qyer.com, skipping...
Executing URL: https://www.zol.com.cn
2024-03-15 15:28:52 INFO     ReqId 23120 FlareSolverr 3.3.16
2024-03-15 15:28:52 DEBUG    ReqId 23120 Debug log enabled
2024-03-15 15:28:52 INFO     ReqId 23120 Testing web browser installation...
2024-03-15 15:28:52 INFO     ReqId 23120 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:52 INFO     ReqId 23120 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:52 INFO     ReqId 23120 Chrome / Chromium major version: 122
2024-03-15 15:28:52 INFO     ReqId 23120 Launching web browser...
2024-03-15 15:28:52 DEBUG    ReqId 23120 Launching web browser...
2024-03-15 15:28:54 ERROR    ReqId 23120 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.zol.com.cn, skipping...
Executing URL: https://www.9game.cn
2024-03-15 15:28:55 INFO     ReqId 5344 FlareSolverr 3.3.16
2024-03-15 15:28:55 DEBUG    ReqId 5344 Debug log enabled
2024-03-15 15:28:55 INFO     ReqId 5344 Testing web browser installation...
2024-03-15 15:28:55 INFO     ReqId 5344 Platform: Windows-10-10.0.19045-SP0
2024-03-15 15:28:55 INFO     ReqId 5344 Chrome / Chromium path: C:\Users\Administrator.000\AppData\Local\Google\Chrome\Application\chrome.exe
2024-03-15 15:28:55 INFO     ReqId 5344 Chrome / Chromium major version: 122
2024-03-15 15:28:55 INFO     ReqId 5344 Launching web browser...
2024-03-15 15:28:55 DEBUG    ReqId 5344 Launching web browser...
2024-03-15 15:28:58 ERROR    ReqId 5344 Error starting Chrome: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 195, in get_webdriver
    PATCHED_DRIVER_PATH = os.path.join(driver.patcher.data_path, driver.patcher.exe_name)
                                       ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\批量移动文件python\FlareSolverr-3.3.16\src\utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
Error occurred while executing URL https://www.9game.cn, skipping...

@ilike2burnthing
Copy link
Contributor

Weird.

Provide the response for curl -v https://www.baidu.com/ without using a proxy.

Can you try 1.1.1.1 as the test URL?

@xueli12
Copy link
Author

xueli12 commented Mar 15, 2024

@ilike2burnthing
response for curl -v https://www.baidu.com/ without using a proxy:

λ curl -v https://www.baidu.com/
*   Trying 120.232.145.185:443...
* Connected to www.baidu.com (120.232.145.185) port 443
* schannel: disabled automatic use of client certificate
* ALPN: curl offers http/1.1
* ALPN: server accepted http/1.1
* using HTTP/1.1
> GET / HTTP/1.1
> Host: www.baidu.com
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Connection: keep-alive
< Content-Length: 2443
< Content-Type: text/html
< Date: Fri, 15 Mar 2024 08:18:40 GMT
< Etag: "58860410-98b"
< Last-Modified: Mon, 23 Jan 2017 13:24:32 GMT
< Pragma: no-cache
< Server: bfe/1.0.8.18
< Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/
<
<!DOCTYPE html>
<!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form
_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus=autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=百度一下 class="bg s_btn" autofocus></span> </form> </div> </div> <div id=u1> <a href=
http://news.baidu.com name=tj_trnews class=mnav>新闻</a> <a href=https://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>地图</a> <a href=http://v.baidu.com name=t
j_trvideo class=mnav>视频</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>贴吧</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1
name=tj_login class=lb>登录</a> </noscript> <script>document.write('<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ encodeURIComponent(window.location.href+ (window.location.search === "" ? "?" : "&")+ "bdor
z_come=1")+ '" name="tj_login" class="lb">登录</a>');
                </script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">更多产品</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>关于百度</a>
 <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>&copy;2017&nbsp;Baidu&nbsp;<a href=http://www.baidu.com/duty/>使用百度前必读</a>&nbsp; <a href=http://jianyi.baidu.com/ class=cp-feedback>意见反馈</a>&nbsp;京ICP证0
30173号&nbsp; <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>
* Connection #0 to host www.baidu.com left intact

@xueli12
Copy link
Author

xueli12 commented Mar 15, 2024

Weird.

Provide the response for curl -v https://www.baidu.com/ without using a proxy.

Can you try 1.1.1.1 as the test URL?

I've also put 1.1.1.1 to the test and came up with the same error.

@ilike2burnthing ilike2burnthing added help wanted Extra attention is needed needs investigation and removed more information needed Further information is requested labels Mar 15, 2024
@bradenmitchell
Copy link

+1 for this. I am getting same error.

Output from docker logs:

2024-03-27 17:00:04 INFO     FlareSolverr 3.3.16
2024-03-27 17:00:04 INFO     Testing web browser installation...
2024-03-27 17:00:04 INFO     Platform: Linux-6.1.21-v8+-aarch64-with-glibc2.31
2024-03-27 17:00:04 INFO     Chrome / Chromium path: /usr/bin/chromium
2024-03-27 17:00:08 INFO     Chrome / Chromium major version: 120
2024-03-27 17:00:08 INFO     Launching web browser...
version_main cannot be converted to an integer
Traceback (most recent call last):
  File "/app/utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "/app/utils.py", line 211, in get_webdriver
    return driver
           ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
2024-03-27 17:01:13 ERROR    Error starting Chrome: Message: unknown error: cannot connect to chrome at 127.0.0.1:49405
from chrome not reachable
Stacktrace:
#0 0x00557c4e4850 <unknown>
#1 0x00557c1eb164 <unknown>
#2 0x00557c1db42c <unknown>
#3 0x00557c21d414 <unknown>
#4 0x00557c216488 <unknown>
#5 0x00557c2610c8 <unknown>
#6 0x00557c2608c0 <unknown>
#7 0x00557c220904 <unknown>
#8 0x00557c221d80 <unknown>
#9 0x00557c4b9618 <unknown>
#10 0x00557c4bc5f0 <unknown>
#11 0x00557c4bc1d8 <unknown>
#12 0x00557c4ac304 <unknown>
#13 0x00557c4bccb0 <unknown>
#14 0x00557c497858 <unknown>
#15 0x00557c4d54c8 <unknown>
#16 0x00557c4d56cc <unknown>
#17 0x00557c4e3db4 <unknown>
#18 0x007f88805648 start_thread
#19 0x007f8804101c <unknown>

  File "/app/flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "/app/flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "/app/utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
2024-03-27 17:01:19 INFO     FlareSolverr 3.3.16
2024-03-27 17:01:19 INFO     Testing web browser installation...
2024-03-27 17:01:21 INFO     Platform: Linux-6.1.21-v8+-aarch64-with-glibc2.31
2024-03-27 17:01:21 INFO     Chrome / Chromium path: /usr/bin/chromium
2024-03-27 17:01:49 INFO     Chrome / Chromium major version: 120
2024-03-27 17:01:49 INFO     Launching web browser...
version_main cannot be converted to an integer
2024-03-27 17:02:58 ERROR    Error starting Chrome: Message: unknown error: cannot connect to chrome at 127.0.0.1:58205
from chrome not reachable
Stacktrace:
#0 0x00557b4c4850 <unknown>
#1 0x00557b1cb164 <unknown>
#2 0x00557b1bb31c <unknown>
Traceback (most recent call last):
  File "/app/utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "/app/utils.py", line 211, in get_webdriver
#3 0x00557b1fd144 <unknown>
#4 0x00557b1f6488 <unknown>
#5 0x00557b2410c8 <unknown>
#6 0x00557b2408c0 <unknown>
#7 0x00557b200904 <unknown>
#8 0x00557b201d80 <unknown>
#9 0x00557b499618 <unknown>
#10 0x00557b49c5f0 <unknown>
#11 0x00557b49c1d8 <unknown>
#12 0x00557b48c304 <unknown>
#13 0x00557b49ccb0 <unknown>
#14 0x00557b477858 <unknown>
#15 0x00557b4b54c8 <unknown>
#16 0x00557b4b56cc <unknown>
#17 0x00557b4c3db4 <unknown>
#18 0x007fb934e648 start_thread
#19 0x007fb8b8a01c <unknown>

    return driver
           ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "/app/flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "/app/utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
2024-03-27 17:03:06 INFO     FlareSolverr 3.3.16
2024-03-27 17:03:06 INFO     Testing web browser installation...
2024-03-27 17:03:06 INFO     Platform: Linux-6.1.21-v8+-aarch64-with-glibc2.31
2024-03-27 17:03:06 INFO     Chrome / Chromium path: /usr/bin/chromium
2024-03-27 17:03:17 INFO     Chrome / Chromium major version: 120
2024-03-27 17:03:17 INFO     Launching web browser...
version_main cannot be converted to an integer
2024-03-27 17:04:30 ERROR    Error starting Chrome: Message: unknown error: cannot connect to chrome at 127.0.0.1:46731
from chrome not reachable
Stacktrace:
#0 0x00558b734850 <unknown>
#1 0x00558b43b164 <unknown>
#2 0x00558b42b31c <unknown>
#3 0x00558b46d144 <unknown>
#4 0x00558b466488 <unknown>
#5 0x00558b4b10c8 <unknown>
#6 0x00558b4b08c0 <unknown>
#7 0x00558b470904 <unknown>
#8 0x00558b471d80 <unknown>
#9 0x00558b709618 <unknown>
#10 0x00558b70c5f0 <unknown>
#11 0x00558b70c1d8 <unknown>
#12 0x00558b6fc304 <unknown>
#13 0x00558b70ccb0 <unknown>
#14 0x00558b6e7858 <unknown>
#15 0x00558b7254c8 <unknown>
#16 0x00558b7256cc <unknown>
#17 0x00558b733db4 <unknown>
#18 0x007fac0cc648 start_thread
#19 0x007fab90801c <unknown>

Traceback (most recent call last):
  File "/app/utils.py", line 308, in get_user_agent
    driver = get_webdriver()
             ^^^^^^^^^^^^^^^
  File "/app/utils.py", line 211, in get_webdriver
    return driver
           ^^^^^^
UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/flaresolverr.py", line 105, in <module>
    flaresolverr_service.test_browser_installation()
  File "/app/flaresolverr_service.py", line 72, in test_browser_installation
    user_agent = utils.get_user_agent()
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "/app/utils.py", line 314, in get_user_agent
    raise Exception("Error getting browser User-Agent. " + str(e))
Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value

@ell1010
Copy link

ell1010 commented Apr 15, 2024

having the same issue here

2024/04/15 19:11:53 | stdout | Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
-- | -- | --
2024/04/15 19:11:53 | stdout | raise Exception("Error getting browser User-Agent. " + str(e))
2024/04/15 19:11:53 | stdout | File "/app/utils.py", line 314, in get_user_agent
2024/04/15 19:11:53 | stdout | ^^^^^^^^^^^^^^^^^^^^^^
2024/04/15 19:11:53 | stdout | user_agent = utils.get_user_agent()
2024/04/15 19:11:53 | stdout | File "/app/flaresolverr_service.py", line 72, in test_browser_installation
2024/04/15 19:11:53 | stdout | flaresolverr_service.test_browser_installation()
2024/04/15 19:11:53 | stdout | File "/app/flaresolverr.py", line 105, in <module>
2024/04/15 19:11:53 | stdout | Traceback (most recent call last):
2024/04/15 19:11:53 | stdout |  
2024/04/15 19:11:53 | stdout | During handling of the above exception, another exception occurred:
2024/04/15 19:11:53 | stdout |  
2024/04/15 19:11:53 | stdout | UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value
2024/04/15 19:11:53 | stdout | ^^^^^^
2024/04/15 19:11:53 | stdout | return driver
2024/04/15 19:11:53 | stdout | File "/app/utils.py", line 211, in get_webdriver
2024/04/15 19:11:53 | stdout | ^^^^^^^^^^^^^^^
2024/04/15 19:11:53 | stdout | driver = get_webdriver()
2024/04/15 19:11:53 | stdout | File "/app/utils.py", line 308, in get_user_agent
2024/04/15 19:11:53 | stdout | Traceback (most recent call last):
2024/04/15 19:11:53 | stdout |  
2024/04/15 19:11:53 | stdout | #20 0x7f9c01652ea7 start_thread
2024/04/15 19:11:53 | stdout | #19 0x5643fc2367bf <unknown>
2024/04/15 19:11:53 | stdout | #18 0x5643fc2285cb <unknown>
2024/04/15 19:11:53 | stdout | #17 0x5643fc2283e5 <unknown>
2024/04/15 19:11:53 | stdout | #16 0x5643fc1e8c86 <unknown>
2024/04/15 19:11:53 | stdout | #15 0x5643fc20ff8e <unknown>
2024/04/15 19:11:53 | stdout | #14 0x5643fc1feabf <unknown>
2024/04/15 19:11:53 | stdout | #13 0x5643fc20fc05 <unknown>
2024/04/15 19:11:53 | stdout | #12 0x5643fc20f238 <unknown>
2024/04/15 19:11:53 | stdout | #11 0x5643fc20f759 <unknown>
2024/04/15 19:11:53 | stdout | #10 0x5643fc20c534 <unknown>
2024/04/15 19:11:53 | stdout | #9 0x5643fbf3e712 <unknown>
2024/04/15 19:11:53 | stdout | #8 0x5643fbf3d13e <unknown>
2024/04/15 19:11:53 | stdout | #7 0x5643fbf781a3 <unknown>
2024/04/15 19:11:53 | stdout | #6 0x5643fbf82957 <unknown>
2024/04/15 19:11:53 | stdout | #5 0x5643fbf83370 <unknown>
2024/04/15 19:11:53 | stdout | #4 0x5643fbf30825 <unknown>
2024/04/15 19:11:53 | stdout | #3 0x5643fbf39034 <unknown>
2024/04/15 19:11:53 | stdout | #2 0x5643fbeef131 <unknown>
2024/04/15 19:11:53 | stdout | #1 0x5643fbf00e6e <unknown>
2024/04/15 19:11:53 | stdout | #0 0x5643fc237233 <unknown>
2024/04/15 19:11:53 | stdout | Stacktrace:
2024/04/15 19:11:53 | stdout | from chrome not reachable
2024/04/15 19:11:53 | stdout | 2024-04-15 19:11:52 ERROR    Error starting Chrome: Message: unknown error: cannot connect to chrome at 127.0.0.1:54847
2024/04/15 19:10:46 | stdout | version_main cannot be converted to an integer
2024/04/15 19:10:44 | stdout | 2024-04-15 19:10:44 INFO     Launching web browser...
2024/04/15 19:10:44 | stdout | 2024-04-15 19:10:44 INFO     Chrome / Chromium major version: 120
2024/04/15 19:10:01 | stdout | 2024-04-15 19:10:01 INFO     Chrome / Chromium path: /usr/bin/chromium
2024/04/15 19:10:00 | stdout | 2024-04-15 19:10:00 INFO     Platform: Linux-4.4.302+-x86_64-with-glibc2.31
2024/04/15 19:09:59 | stdout | 2024-04-15 19:09:59 INFO     Testing web browser installation...
2024/04/15 19:09:59 | stdout | 2024-04-15 19:09:59 INFO     FlareSolverr 3.3.17
2024/04/15 19:07:36 | stdout | version_main cannot be converted to an integer
2024/04/15 19:07:35 | stdout | 2024-04-15 19:07:35 INFO     Launching web browser...
2024/04/15 19:07:35 | stdout | 2024-04-15 19:07:35 INFO     Chrome / Chromium major version: 120
2024/04/15 19:07:29 | stdout | 2024-04-15 19:07:29 INFO     Chrome / Chromium path: /usr/bin/chromium
2024/04/15 19:07:29 | stdout | 2024-04-15 19:07:29 INFO     Platform: Linux-4.4.302+-x86_64-with-glibc2.31
2024/04/15 19:07:29 | stdout | 2024-04-15 19:07:29 INFO     Testing web browser installation...
2024/04/15 19:07:29 | stdout | 2024-04-15 19:07:29 INFO     FlareSolverr 3.3.17
2024/04/15 18:58:32 | stdout | Exception: Error getting browser User-Agent. cannot access local variable 'driver' where it is not associated with a value
2024/04/15 18:58:32 | stdout | raise Exception("Error getting browser User-Agent. " + str(e))
2024/04/15 18:58:32 | stdout | File "/app/utils.py", line 314, in get_user_agent
2024/04/15 18:58:32 | stdout | ^^^^^^^^^^^^^^^^^^^^^^
2024/04/15 18:58:32 | stdout | user_agent = utils.get_user_agent()
2024/04/15 18:58:32 | stdout | File "/app/flaresolverr_service.py", line 72, in test_browser_installation
2024/04/15 18:58:32 | stdout | flaresolverr_service.test_browser_installation()
2024/04/15 18:58:32 | stdout | File "/app/flaresolverr.py", line 105, in <module>
2024/04/15 18:58:32 | stdout | Traceback (most recent call last):
2024/04/15 18:58:32 | stdout |  
2024/04/15 18:58:32 | stdout | During handling of the above exception, another exception occurred:
2024/04/15 18:58:32 | stdout |  
2024/04/15 18:58:32 | stdout | UnboundLocalError: cannot access local variable 'driver' where it is not associated with a value
2024/04/15 18:58:32 | stdout | ^^^^^^
2024/04/15 18:58:32 | stdout | return driver
2024/04/15 18:58:32 | stdout | File "/app/utils.py", line 211, in get_webdriver
2024/04/15 18:58:32 | stdout | ^^^^^^^^^^^^^^^
2024/04/15 18:58:32 | stdout | driver = get_webdriver()
2024/04/15 18:58:32 | stdout | File "/app/utils.py", line 308, in get_user_agent
2024/04/15 18:58:32 | stdout | Traceback (most recent call last):
2024/04/15 18:58:32 | stdout |  
2024/04/15 18:58:32 | stdout | #20 0x7f741d2fcea7 start_thread
2024/04/15 18:58:32 | stdout | #19 0x55df6a51b7bf <unknown>
2024/04/15 18:58:32 | stdout | #18 0x55df6a50d5cb <unknown>
2024/04/15 18:58:32 | stdout | #17 0x55df6a50d3e5 <unknown>
2024/04/15 18:58:32 | stdout | #16 0x55df6a4cdc86 <unknown>
2024/04/15 18:58:32 | stdout | #15 0x55df6a4f4f8e <unknown>
2024/04/15 18:58:32 | stdout | #14 0x55df6a4e3abf <unknown>
2024/04/15 18:58:32 | stdout | #13 0x55df6a4f4c05 <unknown>
2024/04/15 18:58:32 | stdout | #12 0x55df6a4f4238 <unknown>
2024/04/15 18:58:32 | stdout | #11 0x55df6a4f4759 <unknown>
2024/04/15 18:58:32 | stdout | #10 0x55df6a4f1534 <unknown>
2024/04/15 18:58:32 | stdout | #9 0x55df6a223712 <unknown>
2024/04/15 18:58:32 | stdout | #8 0x55df6a22213e <unknown>
2024/04/15 18:58:32 | stdout | #7 0x55df6a25d1a3 <unknown>
2024/04/15 18:58:32 | stdout | #6 0x55df6a267957 <unknown>
2024/04/15 18:58:32 | stdout | #5 0x55df6a268370 <unknown>
2024/04/15 18:58:32 | stdout | #4 0x55df6a215825 <unknown>
2024/04/15 18:58:32 | stdout | #3 0x55df6a21e034 <unknown>
2024/04/15 18:58:32 | stdout | #2 0x55df6a1d4131 <unknown>
2024/04/15 18:58:32 | stdout | #1 0x55df6a1e5e6e <unknown>
2024/04/15 18:58:32 | stdout | #0 0x55df6a51c233 <unknown>
2024/04/15 18:58:31 | stdout | Stacktrace:
2024/04/15 18:58:31 | stdout | from chrome not reachable
2024/04/15 18:58:31 | stdout | 2024-04-15 18:58:30 ERROR    Error starting Chrome: Message: unknown error: cannot connect to chrome at 127.0.0.1:53823
2024/04/15 18:57:18 | stdout | version_main cannot be converted to an integer
2024/04/15 18:57:18 | stdout | 2024-04-15 18:57:18 INFO     Launching web browser...
2024/04/15 18:57:18 | stdout | 2024-04-15 18:57:18 INFO     Chrome / Chromium major version: 120
2024/04/15 18:57:00 | stdout | 2024-04-15 18:57:00 INFO     Chrome / Chromium path: /usr/bin/chromium
2024/04/15 18:57:00 | stdout | 2024-04-15 18:57:00 INFO     Platform: Linux-4.4.302+-x86_64-with-glibc2.31
2024/04/15 18:56:59 | stdout | 2024-04-15 18:56:59 INFO     Testing web browser installation...
2024/04/15 18:56:59 | stdout | 2024-04-15 18:56:59 INFO     FlareSolverr 3.3.17
2024/04/15 18:52:31 | stdout | version_main cannot be converted to an integer
2024/04/15 18:52:30 | stdout | 2024-04-15 18:52:30 INFO     Launching web browser...
2024/04/15 18:52:30 | stdout | 2024-04-15 18:52:30 INFO     Chrome / Chromium major version: 120
2024/04/15 18:52:11 | stdout | 2024-04-15 18:52:11 INFO     Chrome / Chromium path: /usr/bin/chromium
2024/04/15 18:52:11 | stdout | 2024-04-15 18:52:11 INFO     Platform: Linux-4.4.302+-x86_64-with-glibc2.31
2024/04/15 18:52:11 | stdout | 2024-04-15 18:52:11 INFO     Testing web browser installation...
2024/04/15 18:52:11 | stdout | 2024-04-15 18:52:11 INFO     FlareSolverr 3.3.17
2024/04/15 18:50:41 | stdout |  
2024/04/15 18:50:41 | stdout | #18 0x7ff403bc9ea7 start_thread
2024/04/15 18:50:41 | stdout | #17 0x55c2a92167bf <unknown>
2024/04/15 18:50:41 | stdout | #16 0x55c2a92085cb <unknown>
2024/04/15 18:50:41 | stdout | #15 0x55c2a92083e5 <unknown>
2024/04/15 18:50:41 | stdout | #14 0x55c2a91c8c86 <unknown>
2024/04/15 18:50:41 | stdout | #13 0x55c2a91eff8e <unknown>
2024/04/15 18:50:41 | stdout | #12 0x55c2a91deabf <unknown>
2024/04/15 18:50:41 | stdout | #11 0x55c2a91efc05 <unknown>
2024/04/15 18:50:41 | stdout | #10 0x55c2a91ef238 <unknown>
2024/04/15 18:50:41 | stdout | #9 0x55c2a91ef759 <unknown>
2024/04/15 18:50:41 | stdout | #8 0x55c2a91ec534 <unknown>
2024/04/15 18:50:41 | stdout | #7 0x55c2a8f1e712 <unknown>
2024/04/15 18:50:41 | stdout | #6 0x55c2a8f1d13e <unknown>
2024/04/15 18:50:41 | stdout | #5 0x55c2a8f581a3 <unknown>
2024/04/15 18:50:41 | stdout | #4 0x55c2a8f75680 <unknown>
2024/04/15 18:50:41 | stdout | #3 0x55c2a8f58422 <unknown>
2024/04/15 18:50:41 | stdout | #2 0x55c2a8f764d2 <unknown>
2024/04/15 18:50:41 | stdout | #1 0x55c2a8ee0e6e <unknown>
2024/04/15 18:50:41 | stdout | #0 0x55c2a9217233 <unknown>
2024/04/15 18:50:41 | stdout | Stacktrace:
2024/04/15 18:50:41 | stdout | (Session info: chrome=120.0.6099.224)
2024/04/15 18:50:41 | stdout | Exception: Error getting browser User-Agent. Message: script timeout
2024/04/15 18:50:41 | stdout | raise Exception("Error getting browser User-Agent. " + str(e))
2024/04/15 18:50:41 | stdout | File "/app/utils.py", line 314, in get_user_agent
2024/04/15 18:50:41 | stdout | ^^^^^^^^^^^^^^^^^^^^^^
2024/04/15 18:50:41 | stdout | user_agent = utils.get_user_agent()
2024/04/15 18:50:41 | stdout | File "/app/flaresolverr_service.py", line 72, in test_browser_installation
2024/04/15 18:50:41 | stdout | flaresolverr_service.test_browser_installation()
2024/04/15 18:50:41 | stdout | File "/app/flaresolverr.py", line 105, in <module>
2024/04/15 18:50:40 | stdout | Traceback (most recent call last):
2024/04/15 18:50:40 | stdout |  
2024/04/15 18:50:40 | stdout | During handling of the above exception, another exception occurred:
2024/04/15 18:50:40 | stdout |  
2024/04/15 18:50:40 | stdout |  
2024/04/15 18:50:40 | stdout | #18 0x7ff403bc9ea7 start_thread
2024/04/15 18:50:40 | stdout | #17 0x55c2a92167bf <unknown>
2024/04/15 18:50:40 | stdout | #16 0x55c2a92085cb <unknown>
2024/04/15 18:50:40 | stdout | #15 0x55c2a92083e5 <unknown>
2024/04/15 18:50:40 | stdout | #14 0x55c2a91c8c86 <unknown>
2024/04/15 18:50:40 | stdout | #13 0x55c2a91eff8e <unknown>
2024/04/15 18:50:40 | stdout | #12 0x55c2a91deabf <unknown>
2024/04/15 18:50:40 | stdout | #11 0x55c2a91efc05 <unknown>
2024/04/15 18:50:40 | stdout | #10 0x55c2a91ef238 <unknown>
2024/04/15 18:50:40 | stdout | #9 0x55c2a91ef759 <unknown>
2024/04/15 18:50:40 | stdout | #8 0x55c2a91ec534 <unknown>
2024/04/15 18:50:40 | stdout | #7 0x55c2a8f1e712 <unknown>
2024/04/15 18:50:40 | stdout | #6 0x55c2a8f1d13e <unknown>
2024/04/15 18:50:40 | stdout | #5 0x55c2a8f581a3 <unknown>
2024/04/15 18:50:40 | stdout | #4 0x55c2a8f75680 <unknown>
2024/04/15 18:50:40 | stdout | #3 0x55c2a8f58422 <unknown>
2024/04/15 18:50:40 | stdout | #2 0x55c2a8f764d2 <unknown>
2024/04/15 18:50:40 | stdout | #1 0x55c2a8ee0e6e <unknown>
2024/04/15 18:50:40 | stdout | #0 0x55c2a9217233 <unknown>
2024/04/15 18:50:40 | stdout | Stacktrace:
2024/04/15 18:50:40 | stdout | (Session info: chrome=120.0.6099.224)
2024/04/15 18:50:40 | stdout | selenium.common.exceptions.TimeoutException: Message: script timeout
2024/04/15 18:50:40 | stdout | raise exception_class(message, screen, stacktrace)
2024/04/15 18:50:40 | stdout | File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
2024/04/15 18:50:40 | stdout | self.error_handler.check_response(response)
2024/04/15 18:50:40 | stdout | File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
2024/04/15 18:50:40 | stdout | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024/04/15 18:50:40 | stdout | return self.execute(command, {"script": script, "args": converted_args})["value"]
2024/04/15 18:50:40 | stdout | File "/usr/local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 407, in execute_script
2024/04/15 18:50:40 | stdout | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024/04/15 18:50:40 | stdout | USER_AGENT = driver.execute_script("return navigator.userAgent")
2024/04/15 18:50:40 | stdout | File "/app/utils.py", line 309, in get_user_agent
2024/04/15 18:50:40 | stdout | Traceback (most recent call last):
2024/04/15 18:47:22 | stdout | version_main cannot be converted to an integer
2024/04/15 18:47:21 | stdout | 2024-04-15 18:47:21 INFO     Launching web browser...
2024/04/15 18:47:21 | stdout | 2024-04-15 18:47:21 INFO     Chrome / Chromium major version: 120
2024/04/15 18:47:15 | stdout | 2024-04-15 18:47:15 INFO     Chrome / Chromium path: /usr/bin/chromium
2024/04/15 18:47:15 | stdout | 2024-04-15 18:47:15 INFO     Platform: Linux-4.4.302+-x86_64-with-glibc2.31
2024/04/15 18:47:15 | stdout | 2024-04-15 18:47:15 INFO     Testing web browser installation...
2024/04/15 18:47:15 | stdout | 2024-04-15 18:47:15 INFO     FlareSolverr 3.3.17

@ell1010
Copy link

ell1010 commented Apr 17, 2024

possibly some helpful info: running natively on my windows desktop it uses a newer chrome version (123 vs 120) is there a possible way to get the chromium version to force update? or is it possible to change the user agent in some way?

@ell1010

This comment was marked as off-topic.

@ilike2burnthing

This comment was marked as off-topic.

@ell1010

This comment was marked as off-topic.

@ilike2burnthing
Copy link
Contributor

v120 is the latest release on the stable source. To use v123 you can change to the testing source by running each of these commands as root from within the container:

rm chromedriver
sed -i 's/bullseye/testing/g' /etc/apt/sources.list
apt update
apt install -y chromium chromium-common chromium-driver
apt autoremove -y

Then restart the container and see if v123 makes a difference.

@ell1010
Copy link

ell1010 commented Apr 20, 2024

damn, same error

date | stream | content
-- | -- | --
2024/04/20 11:28:08 | stdout | 2024-04-20 11:28:08 INFO     172.20.0.1 POST http://192.168.0.214:8191/v1 500 Internal Server Error
2024/04/20 11:28:07 | stdout | 2024-04-20 11:28:07 INFO     Response in 301.927 s
2024/04/20 11:28:05 | stdout | 2024-04-20 11:28:04 ERROR    Error: Error solving the challenge. Timeout after 80.0 seconds.
2024/04/20 11:25:06 | stdout | 2024-04-20 11:25:00 INFO     172.20.0.1 POST http://192.168.0.214:8191/v1 500 Internal Server Error
2024/04/20 11:25:06 | stdout | 2024-04-20 11:25:00 INFO     Response in 65.645 s
2024/04/20 11:25:06 | stdout | 2024-04-20 11:25:00 ERROR    Error: Error solving the challenge. cannot access local variable 'driver' where it is not associated with a value
2024/04/20 11:25:06 | stdout |  
2024/04/20 11:25:06 | stdout | #17 0x7f6df3dbb45c <unknown>
2024/04/20 11:25:06 | stdout | #16 0x5592d9da69b4 <unknown>
2024/04/20 11:25:06 | stdout | #15 0x5592d9d968fb <unknown>
2024/04/20 11:25:06 | stdout | #14 0x5592d9d96728 <unknown>
2024/04/20 11:25:06 | stdout | #13 0x5592d9d3e87f <unknown>
2024/04/20 11:25:06 | stdout | #12 0x5592d9d70332 <unknown>
2024/04/20 11:25:06 | stdout | #11 0x5592d9d59571 <unknown>
2024/04/20 11:25:06 | stdout | #10 0x5592d9d6f7a5 <unknown>
2024/04/20 11:25:06 | stdout | #9 0x5592d9d6b84b <unknown>
2024/04/20 11:25:06 | stdout | #8 0x5592d9adbf5e <unknown>
2024/04/20 11:25:06 | stdout | #7 0x5592d9adb593 <unknown>
2024/04/20 11:25:06 | stdout | #6 0x5592d9b0a343 <unknown>
2024/04/20 11:25:06 | stdout | #5 0x5592d9b16aed <unknown>
2024/04/20 11:25:06 | stdout | #4 0x5592d9acd7bb <unknown>
2024/04/20 11:25:06 | stdout | #3 0x5592d9ad6c91 <unknown>
2024/04/20 11:25:06 | stdout | #2 0x5592d9a887c3 <unknown>
2024/04/20 11:25:06 | stdout | #1 0x5592d9a9d717 <unknown>
2024/04/20 11:25:06 | stdout | #0 0x5592d9da7863 <unknown>
2024/04/20 11:25:04 | stdout | Stacktrace:
2024/04/20 11:25:04 | stdout | from chrome not reachable
2024/04/20 11:25:02 | stdout | 2024-04-20 11:25:00 ERROR    Error starting Chrome: Message: unknown error: cannot connect to chrome at 127.0.0.1:48789
2024/04/20 11:23:55 | stdout | 2024-04-20 11:23:55 INFO     Incoming request => POST /v1 body: {'maxTimeout': 80000, 'cmd': 'request.get', 'url': 'https://idope.se/browse.html', 'proxy': {}}
2024/04/20 11:23:03 | stdout | 2024-04-20 11:23:03 INFO     Incoming request => POST /v1 body: {'maxTimeout': 80000, 'cmd': 'request.get', 'url': 'https://prowlarr.servarr.com/v1/ping', 'proxy': {}}
2024/04/20 11:22:11 | stdout | 2024-04-20 11:22:10 INFO     172.20.0.1 POST http://192.168.0.214:8191/v1 500 Internal Server Error
2024/04/20 11:22:11 | stdout | 2024-04-20 11:22:10 INFO     Response in 196.981 s
2024/04/20 11:22:10 | stdout | 2024-04-20 11:22:10 ERROR    Error: Error solving the challenge. Timeout after 80.0 seconds.
2024/04/20 11:18:53 | stdout | 2024-04-20 11:18:53 INFO     Incoming request => POST /v1 body: {'maxTimeout': 80000, 'cmd': 'request.get', 'url': 'https://prowlarr.servarr.com/v1/ping', 'proxy': {}}
2024/04/20 11:18:32 | stdout | 2024-04-20 11:18:32 INFO     Serving on http://0.0.0.0:8191
2024/04/20 11:18:31 | stdout | 2024-04-20 11:18:31 INFO     Test successful!
2024/04/20 11:18:31 | stdout | 2024-04-20 11:18:31 INFO     FlareSolverr User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
2024/04/20 11:14:27 | stdout | 2024-04-20 11:14:27 INFO     Launching web browser...
2024/04/20 11:14:27 | stdout | 2024-04-20 11:14:27 INFO     Chrome / Chromium major version: 123
2024/04/20 11:14:25 | stdout | 2024-04-20 11:14:25 INFO     Chrome / Chromium path: /usr/bin/chromium
2024/04/20 11:14:25 | stdout | 2024-04-20 11:14:25 INFO     Platform: Linux-4.4.302+-x86_64-with-glibc2.37
2024/04/20 11:14:25 | stdout | 2024-04-20 11:14:25 INFO     Testing web browser installation...
2024/04/20 11:14:25 | stdout | 2024-04-20 11:14:25 INFO     FlareSolverr 3.3.17
2024/04/20 11:01:58 | stdout | 2024-04-20 11:01:58 INFO     Serving on http://0.0.0.0:8191
2024/04/20 11:01:58 | stdout | 2024-04-20 11:01:58 INFO     Test successful!
2024/04/20 11:01:58 | stdout | 2024-04-20 11:01:58 INFO     FlareSolverr User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
2024/04/20 10:58:16 | stdout | version_main cannot be converted to an integer
2024/04/20 10:58:15 | stdout | 2024-04-20 10:58:15 INFO     Launching web browser...
2024/04/20 10:58:15 | stdout | 2024-04-20 10:58:15 INFO     Chrome / Chromium major version: 120
2024/04/20 10:58:12 | stdout | 2024-04-20 10:58:12 INFO     Chrome / Chromium path: /usr/bin/chromium
2024/04/20 10:58:12 | stdout | 2024-04-20 10:58:12 INFO     Platform: Linux-4.4.302+-x86_64-with-glibc2.31
2024/04/20 10:58:12 | stdout | 2024-04-20 10:58:12 INFO     Testing web browser installation...
2024/04/20 10:58:12 | stdout | 2024-04-20 10:58:12 INFO     FlareSolverr 3.3.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs investigation
Projects
None yet
Development

No branches or pull requests

4 participants