#7664 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: 021790578630707dceccb6eac83fbed179ddd9eacafd80ebc2a3d', '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: 021790578630707dceccb6eac83fbed179ddd9eacafd80ebc2a3d', '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: 021790578630707dceccb6eac83fbed179ddd9eacafd80ebc2a3d', '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

这是字节火山(火山方舟)大模型渠道返回的错误,与 pyVideoTrans 软件本身无关。

核心原因:InvalidEndpoint.ClosedEndpoint 表示你请求的推理接入点(Endpoint)已关闭或暂时不可用。

常见原因如下:

  1. 你在火山方舟控制台创建的推理接入点(Endpoint ID)被停用/关闭了;
  2. 你在软件中填写的推理接入点 ID 错误或过期(例如该 Endpoint 已被删除重建,但软件里还填着旧的);
  3. 该 Endpoint 所绑定的模型服务因欠费、欠额、或平台限额而暂停;
  4. 火山方舟平台该 Endpoint 侧出现短暂的服务异常。

排查与解决办法:

  1. 登录火山方舟控制台,进入「在线推理 / 推理接入点」页面,确认你所使用的 Endpoint 状态是否正常(是否显示为"运行中");
  2. 若已关闭,重新创建一个推理接入点,并复制新的 Endpoint ID;
  3. 打开软件顶部菜单:翻译设置 → 字节火山大模型,把 Model/Endpoint 字段更新为新的接入点 ID,保存;
  4. 确认账号余额充足且对应模型已开通(未开通模型同样会返回 Endpoint 不可用的报错);
  5. 若以上都正常仍报此错,稍等几分钟重试——这属于火山服务端临时不可用。

备选方案:如急需翻译,可临时切换为其他渠道,例如免费 Google 翻译,或注册 DeepSeek(平台:https://platform.deepseek.com/),在 翻译设置 → DeepSeek 填入 API Key,然后在翻译渠道下拉中选择 Deepseek。

请查阅相关文档:

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