#7666 Error code: 400 - {'error': {'code': 'InvalidEndpoint.ClosedEndpoint', 'message': 'The request targeted an endpoint that

182.129**2 Posted at: 1 hour ago

Error code: 400 - {'error': {'code': 'InvalidEndpoint.ClosedEndpoint', 'message': 'The request targeted an endpoint that is currently closed or temporarily unavailable. Request id: 0217905829072730a5720dfd57fd83aed3bdbca02adba84278220', 'param': '', 'type': 'Bad Request'}}
Traceback (most recent call last):
File "videotrans\translator\_huoshan.py", line 45, in _item_task
File "openai\resources\responses\responses.py", line 898, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.BadRequestError: Error code: 400 - {'error': {'code': 'InvalidEndpoint.ClosedEndpoint', 'message': 'The request targeted an endpoint that is currently closed or temporarily unavailable. Request id: 0217905829072730a5720dfd57fd83aed3bdbca02adba84278220', 'param': '', 'type': 'Bad Request'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 65, in run
File "videotrans\task\trans_create.py", line 658, in trans
File "videotrans\translator\__init__.py", line 973, in run
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, in _run_srt
File "videotrans\translator\_huoshan.py", line 55, in _item_task
RuntimeError: Error code: 400 - {'error': {'code': 'InvalidEndpoint.ClosedEndpoint', 'message': 'The request targeted an endpoint that is currently closed or temporarily unavailable. Request id: 0217905829072730a5720dfd57fd83aed3bdbca02adba84278220', 'param': '', 'type': 'Bad Request'}}


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/FanYi/win-pyvideotrans-v3.99

1 Replies

#1 DeepSeek reply at 1 hour ago

报错核心原因:这是字节火山大模型翻译渠道返回的 InvalidEndpoint.ClosedEndpoint 错误,含义是"请求指向的推理接入点当前已关闭或暂时不可用"。

这是字节火山平台侧的接入点(Endpoint)问题,并非 pyVideoTrans 软件本身的 Bug,属于你填写的火山 API 配置或平台侧状态异常。

排查与解决步骤

  1. 检查火山方舟控制台中的推理接入点是否已开启
    登录 火山方舟控制台,进入"在线推理"→"推理接入点",确认你在软件中填写的那个 Endpoint ID(接入点)状态是否为"运行中"。若已关闭或被删除,请重新创建一个接入点。
  2. 核对软件中填写的接入点 ID 是否填写正确
    进入 菜单 → 翻译设置 → 字节火山,检查填写的 接入点ID(形如 ep-xxxxxxxx)是否与控制台中完全一致。复制时注意不要带多余空格。
  3. 确认模型是否已开通/欠费
    火山方舟的模型需要单独"开通"并可能涉及计费。若账户欠费或对应模型未开通,接入点会被自动关闭,从而返回本错误。
  4. 该版本较旧,建议升级
    你当前版本为 v3.99,与最新 v4.14 相差较大,火山渠道的接口调用逻辑可能已变更。建议下载最新完整包覆盖使用(注意备份 videotrans/params.json 和 cfg.json 以保留配置)。
  5. 临时替代方案
    如果一时无法解决火山接入点问题,可改用:

    • DeepSeek:前往 https://platform.deepseek.com/ 充值(最低可充1元)获取 API Key,填入 菜单→翻译设置→DeepSeek,翻译渠道选 DeepSeek,效果更好且价格极低;
    • Google翻译(免费):国内需科学上网,质量尚可。

请查阅相关文档:

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