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

240e:**:8f56 Posted at: 2 hours ago

[zijie] 无法连接到 网址/api/v3,可能当前网络不可访问该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 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\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: The read operation timed out

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

Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 84, 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 87, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 68, 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 86, in _item_task
videotrans.configure.excepts.StopTask: [zijie] 无法连接到 网址/api/v3,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动
Request timed out.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频或音频 单视频模式
原始输入文件名: D:/zzz/The Two Types of Narcissist.mp4,
输出结果保存到文件夹: D:/zzz/_video_out/The Two Types of Narcissist-mp4,
临时文件夹: D:/tools/win-pyvideotrans-v4.09-0810/tmp/13828/c3d80718d3
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 英语, 断句方式:默认断句
翻译渠道:字节大模型,原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕(双) 目标语言在上双字幕
已选 仅输出mp4
代理地址:http://127.0.0.1:6478


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

1 Replies

#1 DeepSeek reply at 2 hours ago

这是网络连接超时导致的,pyVideoTrans 无法访问字节火山翻译 API 的地址 https://ark.cn-beijing.volces.com/api/v3

可能原因与解决办法如下:

  1. 网络无法访问该 API
    先确认当前网络是否能正常打开该地址:在浏览器中访问 https://ark.cn-beijing.volces.com,如果打不开,说明网络到火山引擎的连接不通,请更换网络或联系网络管理员。
  2. 代理设置干扰
    当前软件设置了代理 http://127.0.0.1:6478。字节火山是大陆服务,正常不需要走代理。如果代理不稳定、失效或强制全局代理,会导致请求超时。
    请进入软件「菜单 → 翻译设置 → 全局代理设置」中将代理地址清空并保存,或确认代理可用后再重试。
  3. 字节火山 API 配置不正确
    检查「菜单 → 翻译设置 → 字节火山」中填写的 API Key 是否正确、是否还有余额;模型名是否为翻译可用的模型(如 doubao-seed-* 开头的文本模型),避免误选了语音识别模型或不可用的模型。
  4. 临时改用其他翻译渠道
    如果仍无法解决,可以先切换到 DeepSeek、OpenAI 等其余翻译渠道完成当前任务,排除渠道本身的不稳定。

请查阅相关文档:

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