#6247 连接被拒绝,无法连接目标服务:{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/

2602:fd6f* Posted at: 6 hours ago

连接被拒绝,无法连接目标服务:
{'text': 'hello, my friend', 'role': 'Lennart Kurz', 'filename': 'D:/pyVideoTrans/win-pyvideotrans-v4.07/tmp/2272/1785682918.9843192-cambtts.wav', 'tts_type': 32}
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 289, in handle_request
File "httpcore\_sync\connection.py", line 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 21, in run
File "videotrans\tts\__init__.py", line 221, in run
File "videotrans\tts\_base.py", line 130, in run
File "videotrans\tts\_base.py", line 217, 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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_cambtts.py", line 104, in _run
File "camb\text_to_speech\client.py", line 95, in tts
File "contextlib.py", line 135, in enter
File "camb\text_to_speech\raw_client.py", line 104, in tts
File "contextlib.py", line 135, in enter
File "camb\core\http_client.py", line 421, in stream
File "contextlib.py", line 135, in enter
File "httpx\_client.py", line 868, in stream
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。


=
system:Windows-10-10.0.22631-SP0
version:v4.08
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是由于目标 CAMB TTS 服务无法连接导致的(WinError 10061),且报错堆栈中走了代理请求,需按以下步骤排查并修复:

1. 确认 CAMB TTS 服务是否已启动

  • 若 CAMB AI 是本地部署/自建服务,请先启动对应服务,并确认监听端口与软件中填写的 API 地址一致。
  • 软件中 API 地址不能填写 0.0.0.0,本地服务应填写为 127.0.0.1(例如 http://127.0.0.1:端口号)。

2. 检查代理设置

  • 错误堆栈中出现了 http_proxy.py,说明该请求走了代理。
  • 本地服务默认不需要代理;请在 菜单 → 翻译设置/配音设置 → 对应渠道设置 中检查:

    • 代理文本框是否填写了无效地址?
    • 若不需要代理,请将代理文本框清空并保存。
  • 填写了无效代理地址会导致所有网络请求失败,包括本地连接。

3. 以单视频模式重试并查看日志

  • 修改配置后重新执行任务。
  • 若仍失败,请提供 logs/ 目录下最新日志文件底部约 30 行报错内容,以便进一步分析。
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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource