#7254 翻译字幕阶段出错 [腾讯翻译] Connection refusedTraceback (most recent call last):

60.220**2 Posted at: 1 hour ago

翻译字幕阶段出错 [腾讯翻译] Connection refused
Traceback (most recent call last):

File "videotrans\translator\_base.py", line 67, in run

File "videotrans\translator\_base.py", line 105, 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 421, in exc_check

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 137, in process_task

File "videotrans\task\translate_srt.py", line 51, in trans

File "videotrans\translator\_runner.py", line 67, in run

File "videotrans\translator\_base.py", line 73, in run

File "tenacity\__init__.py", line 480, in call

File "videotrans\translator\_tencent.py", line 47, in _item_task

File "tencentcloud\tmt\v20180321\tmt_client.py", line 163, in TextTranslate

File "tencentcloud\common\abstract_client.py", line 431, in call

File "tencentcloud\common\abstract_client.py", line 428, in _call

File "tencentcloud\common\http\request.py", line 118, in send_request

tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:ClientNetworkError message:HTTPSConnectionPool(host='tmt.tencentcloudapi.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))) requestId:None
[TranslateSrt]翻译字幕: OutputFormat=单语字幕
[TaskCfgSTS]
原始输入文件名: E:/AE/After Effects Guru/01 After Effects CC Essential Training(核心培训)/122431_01_02_3D15_interface.srt,
输出结果保存到文件夹: E:/AE/After Effects Guru/01 After Effects CC Essential Training(核心培训)
翻译渠道:腾讯翻译,原始语言:auto,目标语言:zh-cn, 未选 发送完整字幕
代理地址:http://127.0.0.1:2080


=
system:Windows-10-10.0.19045-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.12-0912_20260913_140223

1 Replies

#1 DeepSeek reply at 1 hour ago

原因:您在软件里设置了代理 http://127.0.0.1:2080,但该代理服务当前未运行或端口不正确,导致腾讯翻译请求无法连接到代理而被拒绝(WinError 10061)。

解决方法:

  1. 清空代理:在主界面 对齐控制 行右侧的网络代理文本框中,将 http://127.0.0.1:2080 删除并保存。
  2. 腾讯翻译属于国内 API,默认不需要代理,软件已内置免代理域名列表,会自动绕过。
  3. 如需使用代理,请确认代理服务已启动且端口填写正确(格式如 http://127.0.0.1:10808)。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource