#8314 翻译字幕阶段出错 [微软(免费)] Network connection failedTraceback (most recent call last):

161.129**8 Posted at: 3 hours ago

翻译字幕阶段出错 [微软(免费)] Network connection failed
Traceback (most recent call last):

File "urllib3\connectionpool.py", line 787, in urlopen

File "urllib3\connectionpool.py", line 534, in _make_request

File "urllib3\connection.py", line 565, in getresponse

File "http\client.py", line 1375, in getresponse

File "http\client.py", line 318, in begin

File "http\client.py", line 287, in _read_status

http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

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 474, in increment

File "urllib3\util\util.py", line 38, in reraise

File "urllib3\connectionpool.py", line 787, in urlopen

File "urllib3\connectionpool.py", line 534, in _make_request

File "urllib3\connection.py",
......
t.py", line 318, in begin

File "http\client.py", line 287, in _read_status

urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

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 136, in process_task

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

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

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

File "videotrans\translator\_base.py", line 117, 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 451, in result

File "concurrent\futures\_base.py", line 403, in __get_result

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

File "videotrans\translator\_microsoft.py", line 49, in _item_task

File "requests\api.py", line 115, in post

File "requests\api.py", line 59, in request

File "requests\sessions.py", line 589, in request

File "requests\sessions.py", line 703, in send

File "requests\adapters.py", line 659, in send

requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
trk=[TranslateSrt]: uuid='12772380c7', proxy_str=None, cfg=[TaskCfgSTS]
原始输入文件名: C:/Users/Administrator/Desktop/ja新建文件夹/老祖赐我通天眼,我无敌了.zh.srt,
输出结果保存到文件夹: E:/zm/py/output/translate
翻译渠道:微软(免费),原始语言:zh-cn,目标语言:fr, 已选 发送完整字幕, precent=1, hasend=False, should_recogn=False, should_trans=True, should_dubbing=False, should_hebing=False, out_format=0


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:E:/zm/py

1 Replies

#1 DeepSeek reply at 3 hours ago

微软免费翻译接口连接被远端强制断开(RemoteDisconnected),属于网络连接层面失败,不是软件内部逻辑错误。日志显示 proxy_str=None,说明未使用代理,因此问题集中在网络环境不稳定、微软接口限流或本地网络无法正常访问该接口。

解决方案(按顺序尝试):

  1. 更换翻译渠道:微软免费接口本身不稳定,高频请求易被临时拒绝。推荐改用 DeepSeek(去 https://platform.deepseek.com/ 注册充值并填写 API Key,翻译质量更好),或使用完全离线的 M2M100(内置) 本地翻译模型,彻底避开网络问题。
  2. 降低请求频率:进入 菜单-工具-高级选项-字幕翻译,将「传统翻译渠道每批字幕行数」设为 1,并将「翻译后暂停秒」设为 2~5。
  3. 检查代理设置:若你开启了 VPN/代理软件,请将主界面「对齐控制」右侧的代理文本框清空(微软翻译为国内可直连接口,无需走代理),填写无效代理会导致全部网络请求失败。
  4. 切换网络后重试:部分运营商网络对该接口存在间歇性切断,可尝试更换网络环境或稍后重试。

请查阅相关文档:

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