#6297 [deepseek] 无法连接到 https://api.deepseek.com/v1/,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动Request timed out.

74.211* Posted at: 3 hours ago

[deepseek] 无法连接到 https://api.deepseek.com/v1/,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动
Request timed out.
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 127, in iter
File "httpcore\_sync\connection_pool.py", line 367, in iter
File "httpcore\_sync\connection_pool.py", line 363, in iter
File "httpcore\_sync\http11.py", line 349, in iter
File "httpcore\_sync\http11.py", line 341, in iter
File "httpcore\_sync\http11.py", line 210, in _receive_response_body
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: The read operation timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "open
......
translator\_openaicompat.py", line 77, in _item_task
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 1055, in request
openai.APITimeoutError: Request timed out.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 83, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 63, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 204, in _run_srt
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\_openaicompat.py", line 79, in _item_task
videotrans.configure.excepts.StopTask: [deepseek] 无法连接到 https://api.deepseek.com/v1/,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动
Request timed out.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/发布视频/MG21-1.mp4,
输出结果保存到文件夹: D:/导出素材/MG21-1-mp4,
临时文件夹: D:/win-pyvideotrans-v4.08-0802/tmp/8420/44996e9e4e
未选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), model_name: large-v3-turbo, 发音语言: 英语, 断句方式:LLM重新断句
翻译渠道:DeepSeek,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
已选 仅输出mp4
代理地址:


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

1 Replies

这是网络请求超时导致的:pyVideoTrans 在调用 DeepSeek API 时,向 https://api.deepseek.com/v1/ 发起的请求在读取响应阶段超时(httpx.ReadTimeout: The read operation timed out),没有收到任何数据返回。可能原因包括:当前网络无法正常连接 DeepSeek 服务、API 密钥无效或账户余额不足、请求数据量过大导致单次响应超时等。

请按以下步骤排查:

  1. 核对 API Key 与余额:打开 菜单 → 翻译设置 → DeepSeek,确认已正确填写密钥且账户有充足余额。可在浏览器中登录 DeepSeek 开放平台查看余额和密钥状态。
  2. 检查网络连通性:在浏览器中直接访问 https://api.deepseek.com,若无法打开或响应缓慢,说明本机到该 API 的网络链路存在问题,需更换网络(如切换热点、调整防火墙)或稍后重试。
  3. 检查代理设置:本次日志中代理地址为空,但若你曾填过代理,请确认代理格式应为 http://127.0.0.1:端口号,并确保代理可用。填写无效代理会导致所有网络请求失败。DeepSeek 是国内 API,默认不走代理。
  4. 降低单次请求负担:在 高级选项 → 字幕翻译调整 中,若勾选了「AI翻译一次性翻译所有字幕行」,请改为按批次发送,并可将每批字幕行数调低(如 20),避免因单次生成过长超时。
  5. 临时改换渠道:若以上均无法解决,可先改用 Microsoft 翻译M2M100(内置) 完成翻译,待网络恢复后再换回 DeepSeek。
  6. 若仍未解决:请提供软件安装目录下 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 via ko-fi.com

Dondate via PayPal

Related resource