#1005 requests.exceptions.ProxyError: HTTPSConnectionPool(host='dashscope.aliyuncs.com', port=443): Max retries exceeded with

2409:8a28* Posted at: 1 day ago 👁13

代理设置有问题,请检查代理配置或暂时关闭代理:Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.py", line 753, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests\adapters.py", line 667, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='dashscope.aliyuncs.com', port=443): Max retries exceeded with url: /api/v1/services/aigc/text-generation/generation (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 855, in run
File "videotrans\translator\_base.py", line 81, in run
File "videotrans\translator\_base.py", line 99, in _run_text
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_qwenmt.py", line 54, in _item_task
File "dashscope\aigc\generation.py", line 140, in call
File "dashscope\client\base_api.py", line 148, in call
File "dashscope\api_entities\http_request.py", line 101, in call
File "dashscope\api_entities\http_request.py", line 330, in _handle_request
File "dashscope\api_entities\http_request.py", line 313, in _handle_request
File "requests\sessions.py", line 637, in post
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 694, in send
requests.exceptions.ProxyError: HTTPSConnectionPool(host='dashscope.aliyuncs.com', port=443): Max retries exceeded with url: /api/v1/services/aigc/text-generation/generation (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

=====
Windows-10-10.0.26200-SP0
version:v3.81
frozen:True
language:zh

1 Replies

本条内容由 gpt-5-mini 回复

问题很可能是由于代理配置错误或代理服务器不可达,导致请求通过代理连接 dashscope.aliyuncs.com 时被拒绝。请按以下步骤检查并修复代理配置,或暂时关闭代理以验证问题是否消失:

  1. 在 pyVideoTrans 中暂时关闭或清空代理设置:

    • 菜单 -> 工具/选项(或 高级选项)中找到“代理/网络”设置,取消勾选“启用代理”或将代理地址与端口清空,保存并重启软件。
    • 若界面有“全局代理”或类似开关,也一并关闭。
  2. 检查系统代理/环境变量(Windows):

    • Windows 设置 -> 网络和 Internet -> 代理,关闭“使用代理服务器”。
    • 在命令行检查环境变量:打开 cmd 运行:

      • echo %HTTP_PROXY%
      • echo %HTTPS_PROXY%
        如果显示非空,临时清除当前会话:set HTTP_PROXY= && set HTTPS_PROXY=
        如需永久删除,请通过“系统属性 -> 高级 -> 环境变量”移除对应项。
  3. 验证代理服务器是否可达(如必须使用代理时):

    • 在 PowerShell 运行:Test-NetConnection -ComputerName proxy_host -Port proxy_port
    • 测试目标站点连通性:Test-NetConnection -ComputerName dashscope.aliyuncs.com -Port 443
    • 或在浏览器直接访问 https://dashscope.aliyuncs.com 看能否打开。
    • 若代理需要认证,确认已在软件中正确填写用户名/密码且代理支持 HTTPS 转发。
  4. 防火墙/安全软件与VPN检查:

    • 确认本机或网络防火墙、杀软或 VPN 未阻止到代理或目标主机的连接。必要时短暂禁用以排查。
  5. 如果必须走代理但仍偶发失败,可考虑:

    • 将 pyVideoTrans 中的并发数/重试配置调低(高级选项),避免并发连接触发代理或上游限流。
    • 确认代理稳定后再恢复原配置。
  6. 若按以上步骤仍无法解决,请提供最新日志以便进一步分析:

    • 日志路径:软件根目录/logs/,请附上最新的 {年月日}.log 文件(或把其中报错段落粘贴上来)。

在 v3.81 上重现此类错误通常就是代理不可达或配置错误,先按“关闭代理并重试”验证是否恢复正常。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions