#7818 翻译字幕阶段出错 [OpenAI ChatGPT] The origin web server did not return a complete response within the 120-second Proxy Read Time

125.33**3 Posted at: 1 hour ago

翻译字幕阶段出错 [OpenAI ChatGPT] The origin web server did not return a complete response within the 120-second Proxy Read Timeout window. The connection was established, but the origin took too long to respond.
Traceback (most recent call last):

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

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

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 75, in run

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

File "videotrans\translator\_openaicompat.py", line 98, in _item_task

File "videotrans\translator\_openaicompat.py", line 48, in _create_completion

File "openai\_utils\_utils.py", line 298, in wrapper

File "openai\resources\chat\completions\completions.py", line 1215, in create

File "openai\_base_client.py", line 1332, in post

File "openai\_base_client.py", line 1105, in request

openai.InternalServerError: Error code: 524 - {'error': {'message': 'The origin web server did not return a complete response within the 120-second Proxy Read Timeout window. The connection was established, but the origin took too long to respond.', 'type': 'bad_response_status_code', 'param': '', 'code': 'bad_response_status_code'}}

self.cfg=[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: D:/BaiduNetdiskDownload/Anima Warriors 动画战士(mp4格式)/Animawarriors - 躯体力学02/02. Blocking - part 1.mp4,
输出结果保存到文件夹: D:/BaiduNetdiskDownload/Anima Warriors 动画战士(mp4格式)/Animawarriors - 躯体力学02/_video_out/02. Blocking - part 1-mp4,
临时文件夹: D:/Program Files (x86)/pyvideotrans4.14/tmp/13740/a7c00edeed
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:OpenAI语音识别API, , 发音语言: 英语, 断句方式:默认断句
翻译渠道:OpenAI ChatGPT,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: 嵌入软字幕


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/Program Files (x86)/pyvideotrans4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

错误码 524 是代理网关超时,说明翻译请求已发出,但 AI 服务端在 120 秒内未返回完整响应。核心原因通常是:单次发送的字幕行数过多、或模型为思考类模型导致耗时过长、或所选第三方中转 API 服务缓慢/不稳定。

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

  1. 减小单批发送行数
    菜单 工具/选项 → 高级选项 → 字幕翻译,将 AI翻译渠道每批字幕行数 改为 10 或更小。
  2. 取消「AI翻译附带所有字幕做参考」
    该选项会让每次请求携带全部原字幕,输入极长,极易触发 524 超时。若已勾选,请取消。
  3. 取消「发送完整字幕」
    当前日志显示你已勾选此项。可尝试取消,改为纯文本逐行提交,降低单次请求体量。
  4. 检查 API 地址与代理

    • 若使用第三方中转地址,该地址本身响应慢或不稳定,请更换为更可靠的官方地址或中转。
    • 若填写了网络代理,代理不稳定也会造成 120 秒超时;可尝试清空主界面右侧的代理文本框后重试(国内访问 OpenAI 本身需要代理,需保证代理稳定)。
  5. 避免使用思考模式模型
    若所选模型开启思考(Thinking),响应时间会大幅增加,请改用非思考模型或取消思考选项。
  6. 重试时勾选「清理已生成」
    避免复用上次失败遗留的中间文件。
注:日志显示你将软件安装在 D:/Program Files (x86)/ 下,该路径含空格与括号,且属受权限管理的目录,建议移动到浅层纯英文路径(如 D:/pyvideotrans),以免引发其他连带问题。

请查阅相关文档:

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