#7779 Connection reset, network may be unstableTraceback (most recent call last):

101.71**1 Posted at: 12 hours ago

Connection reset, network may be unstable
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 488, in _make_request
File "urllib3\connectionpool.py", line 464, in _make_request
File "urllib3\connectionpool.py", line 1093, in _validate_conn
File "urllib3\connection.py", line 790, in connect
File "urllib3\connection.py", line 969, in _ssl_wrap_socket_and_match_hostname
File "urllib3\util\ssl_.py", line 480, in ssl_wrap_socket
File "urllib3\util\ssl_.py", line 524, in _ssl_wrap_socket_impl
File "ssl.py", line 513, in wrap_socket
File "ssl.py", line 1104, in _create
File "ssl.py", line 1375, in do_handshake
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。

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

......
ionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 75, in run
File "videotrans\translator\_base.py", line 69, in run
File "videotrans\translator\_base.py", line 107, 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.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/360MoveData/Users/lenovo/Desktop/教学/视频下载/Who Can Secretly Live In A Mall The Longest_.mp4,
输出结果保存到文件夹: D:/360MoveData/Users/lenovo/Desktop/教学/视频下载/_video_out/Who Can Secretly Live In A Mall The Longest_-mp4,
临时文件夹: D:/360MoveData/Users/lenovo/Desktop/教学/win-pyvideotrans-v4.14/tmp/12356/40d7203774
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
video_duration_ms=2569433


=
system:Windows-10-10.0.26200-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/360MoveData/Users/lenovo/Desktop/教学/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 12 hours ago

这是网络连接问题,微软免费翻译接口在请求时被服务器强制断开(WinError 10054)。

通常由网络不稳定、代理配置异常、或微软接口临时限流导致。

解决方案(按顺序尝试)

  1. 检查并清空代理设置:查看主界面「对齐控制」行右侧的代理文本框。

    如果你填写了代理地址(如 http://127.0.0.1:10808),请临时清空它再重试。

    填写了无效或不通的代理会导致所有网络请求失败。

  2. 更换翻译渠道:微软免费翻译接口稳定性较差,建议改用 DeepSeek:

    • 访问 https://platform.deepseek.com/ 注册并充值(可只充1元)
    • 获取 API key,填入「菜单 → 翻译设置 → DeepSeek」
    • 主界面翻译渠道下拉框改选 DeepSeek
  3. 降低成本频率:进入「菜单 → 工具/选项 → 高级选项 → 字幕翻译」,将「传统翻译渠道每批字幕行数」设为 1~5,「翻译后暂停秒」设为 2~5,降低请求频率。

  4. 检查 VPN/代理稳定性:如果你在用 VPN,节点不稳定也会导致 Connection reset,尝试切换节点或关闭 VPN 后重试(微软翻译国内可直连)。

  5. 重试任务:以上调整后,勾选主界面「清理已生成」,重新执行。

请查阅相关文档:

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