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

2408:8221* Posted at: 17 days ago 👁62

代理设置不正确或代理不可用,请检查代理或关闭代理并删掉代理文本框中所填内容:
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 644, 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/multimodal-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\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 299, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_qwentts.py", line 70, in _item_task
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\tts\_qwentts.py", line 45, in _run
File "dashscope\audio\qwen_tts\speech_synthesizer.py", line 64, 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 671, in send
requests.exceptions.ProxyError: HTTPSConnectionPool(host='dashscope.aliyuncs.com', port=443): Max retries exceeded with url: /api/v1/services/aigc/multimodal-generation/generation (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))


=
system:Windows-10-10.0.19045-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/peiyin/win-pyvideotrans-v3.86

7 Replies

这是由于网络代理设置不正确,导致软件无法连接到阿里云的通义千问TTS服务。

  1. 检查并修正代理设置:

    • 打开 pyVideoTrans 软件。
    • 点击菜单栏的“设置” -> “网络代理”。
    • 如果你使用了代理(如 Clash、V2RayN 等),请确保代理软件正在运行,并且填写的代理地址(例如 http://127.0.0.1:7890)和端口号完全正确。
    • 如果你没有使用代理,或者不确定代理是否有效,请直接清空“代理地址”和“端口”文本框,然后点击“保存”。
  2. 重新尝试任务:返回主界面,重新执行之前失败的任务。

请查阅相关文档:

我批量做的,过了一会就不行了,前面几个还能生成

这是由于网络代理不稳定或连接中断,导致后续任务无法继续连接服务。请检查并调整代理设置,并优化任务执行方式:打开 pyVideoTrans 软件,进入“设置” -> “网络代理”。如果你确认代理地址(如 http://127.0.0.1:7890)正确,请检查你的代理软件(如 Clash、V2RayN)是否在运行,并确保其没有自动关闭或切换节点。如果代理不稳定,建议清空代理设置,直接使用本地网络重试。如果必须使用代理,请在“高级选项”中降低并发任务数:进入“菜单” -> “工具” -> “高级选项”。找到“同时配音线程数”或“同时翻译线程数”(取决于你使用的渠道),将其设置为 1。找到“配音后暂停秒数”或“翻译后暂停秒数”,将其设置为 5-10 秒。保存设置并重启软件。重新执行批量任务。如果问题依然存在,请提供软件安装目录下 logs/ 文件夹中最新日志文件的底部约30行报错信息以便分析。

这个问题不是因为Qwen-TTS没有冲钱导致的吧?

不是。这个错误明确指向网络代理连接失败,与账户余额无关。错误信息 ProxyError[WinError 10061] 由于目标计算机积极拒绝,无法连接 表明软件尝试通过你设置的代理服务器去连接 dashscope.aliyuncs.com(阿里云服务),但代理服务器没有响应或无法访问。账户欠费或未开通服务通常会返回不同的API错误(如鉴权失败、额度不足等)。请优先按照之前的步骤检查和修正代理设置。

确实设置代理就好了,但是Qwen-TTS是阿里的 为啥要代理服务

Qwen-TTS服务本身不需要代理即可访问。错误是因为你在软件的网络代理设置中填写了代理地址,导致软件将所有网络请求(包括对阿里云服务的请求)都尝试通过该代理服务器转发。当代理服务器不稳定、未运行或地址/端口配置错误时,就会出现“目标计算机积极拒绝”的连接错误。解决方法:如果你不需要代理访问其他服务(如OpenAI、Google等),请清空软件内的代理设置。如果你需要代理访问部分服务,但目前代理不稳定,可以尝试在代理软件中设置“规则模式”或“分流”,让对阿里云(dashscope.aliyuncs.com)的请求直连,而不走代理。

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.

Related resource

Similar issues already exist