#5443 网络连接失败Traceback (most recent call last): File "urllib3\connectionpool.py", line 787, in urlopen File "urllib3\connecti

2409:8a70* Posted at: 13 hours ago

网络连接失败
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", 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
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\only_one.py", line 67, in run
File "videotrans\task\trans_create.py", line 608, in trans
File "videotrans\translator\__init__.py", line 860, in run
File "videotrans\translator\_base.py", line 65, in run
File "videotrans\translator\_base.py", line 95, 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 36, 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'))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/aaa/Documents/6.24.mp4,
输出结果保存到文件夹: D:/pyvideo/win-pyvideotrans-v4.03-0619/6.24-mp4,
临时文件夹: D:/pyvideo/win-pyvideotrans-v4.03-0619/tmp/15216/ac246b3f93
已选 清理已存在
已选 启用CUDA加速
未选 降噪
已选 删除所有标点符号
语音识别:Qwen-ASR(本地内置), model_name: 1.7B, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Roger(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4
代理地址:


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/pyvideo/win-pyvideotrans-v4.03-0619

1 Replies

这是微软翻译的 API 连接被远程服务器关闭导致的网络请求失败,通常由以下原因引起:

  1. 请求频率过高被限流:微软翻译的免费接口有调用频率限制。
  2. 网络连接不稳定:特别是从中国大陆访问微软服务时,可能偶发连接中断。

解决方案

  1. 降低翻译请求频率:

    • 打开 菜单 → 工具 → 高级选项 → 字幕翻译调整,将 传统翻译渠道每批字幕行数 减小(如设为 5),并将 翻译后暂停秒 设为 10 以上(等待间隔降低并发)。
  2. 更换翻译渠道:

    • 微软翻译频繁失败时,建议换用 Google 翻译(需配置代理并开启系统代理)或 DeepSeekOpenAI 等 AI 翻译渠道(需填写 API Key)。
  3. 检查代理设置:

    • 确保主界面 网络代理 文本框为空(国内访问微软翻译不需要代理),若填写了无效代理则可能干扰连接。
  4. 如果问题持续,请提供软件根目录 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: ko-fi.com/jianchang512

Related resource