#6848 翻译字幕阶段出错 [兼容AI/本地模型] 连接超时,请检查网络连接是否稳定Traceback (most recent call last):

103.197.**5 Posted at: 1 hour ago

翻译字幕阶段出错 [兼容AI/本地模型] 连接超时,请检查网络连接是否稳定
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 207, in handle_request
File "httpcore\_sync\connection.py", line 101, in handle_request
File "httpcore\_sync\http11.py", line 143, in handle_request
File "httpcore\_sync\http11.py", line 113, in handle_request
File "httpcore\_sync\http11.py", line 186, in _receive_response_headers
File "httpcore\_sync\http11.py", line 224, in _receive_event
File "httpcore\_backends\sync.py", line 124, in read
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ReadTimeout: timed out

The above exception was the dir
......
in request
openai.APITimeoutError: Request timed out.
TaskCfgVTT(is_cuda=True, uuid='69902aa02b', cache_folder='E:/pyvideotrans-v3.98/tmp/12200/69902aa02b', target_dir='C:/Users/UserName/Desktop/_video_out/85 Planes vs 2 Warships对照用-mp4', source_language='英语', source_language_code='en', source_sub='C:/Users/UserName/Desktop/_video_out/85 Planes vs 2 Warships对照用-mp4/en.srt', source_wav='E:/pyvideotrans-v3.98/tmp/12200/69902aa02b/en.wav', source_wav_output='C:/Users/UserName/Desktop/_video_out/85 Planes vs 2 Warships对照用-mp4/en.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='C:/Users/UserName/Desktop/_video_out/85 Planes vs 2 Warships对照用-mp4/zh-cn.srt', target_wav='E:/pyvideotrans-v3.98/tmp/12200/69902aa02b/target.wav', target_wav_output='C:/Users/UserName/Desktop/_video_out/85 Planes vs 2 Warships对照用-mp4/zh-cn.m4a', name='C:/Users/UserName/Desktop/新建文件夹/85 Planes vs 2 Warships对照用.mp4', noextname='85 Planes vs 2 Warships对照用', basename='85 Planes vs 2 Warships对照用.mp4', ext='mp4', dirname='C:/Users/UserName/Desktop/新建文件夹', shound_del_name=None, translate_type=8, tts_type=1, volume='+10%', pitch='+0Hz', voice_rate='+0%', voice_role='1nan.wav', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/Users/UserName/Desktop/_video_out/85 Planes vs 2 Warships对照用-mp4/85 Planes vs 2 Warships对照用.mp4', novoice_mp4='E:/pyvideotrans-v3.98/tmp/12200/69902aa02b/novoice.mp4', is_separate=False, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=1, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False)


=
system:Windows-10-10.0.22621-SP0
version:v3.98
frozen:True
language:zh
root_dir:E:/pyvideotrans-v3.98

1 Replies

#1 DeepSeek reply at 1 hour ago

这是【兼容AI/本地模型】翻译渠道向所配置的API服务发起请求时,等待响应超时(openai.APITimeoutError / httpx.ReadTimeout)导致的。

请按以下顺序排查:

  1. 确认API服务已启动且地址正确

    • 若为本地部署的模型,确认服务进程在运行,且填写的端口与启动端口一致。
    • 若为第三方中转/兼容OpenAI接口,确认地址、密钥、模型名称均正确。
    • API地址严禁填写 0.0.0.0,应改为 127.0.0.1
  2. 检查网络与代理

    • 若需走代理,请在软件设置中填写正确代理格式,例如 http://127.0.0.1:7890socks5://127.0.0.1:7890
    • 国内访问国内API(如DeepSeek、智谱)默认不走代理;本地服务(127.0.0.1)也自动绕过代理。若填了无效代理,所有网络请求都会失败。
  3. 缩短单次翻译数据量,降低单次请求超时风险

    • 进入 菜单 → 工具 → 高级选项 → 字幕翻译调整,将 AI翻译渠道每批字幕行数传统翻译渠道每批字幕行数 都设为较小的值(如 1 或 5),减少单次请求的响应压力。
  4. 升级软件版本

    • 当前日志显示版本为 v3.98,而最新版本为 v4.11。旧版本可能存在底层请求库兼容性问题,建议下载最新完整包或补丁包覆盖升级后重试。
  5. 重试或更换翻译渠道

    • 若以上均正常但模型本身响应极慢,可先启用“失败后重试次数”稍作等待;或更换为更快的翻译渠道(如 DeepSeek / Google)。

如果仍无法解决,请提供软件安装目录下 logs/ 文件夹中最新日志文件(复制底部约30行报错信息),以便进一步分析。

请查阅相关文档:

Thinking...
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 via ko-fi.com

Related resource