#4536 openai.InternalServerError: Error code: 503 - {'error': {'message': 'Service temporarily unavailable', 'type': 'api_erro

108.181* Posted at: 2 hours ago 👁9

Service temporarily unavailable:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 1031, in run
File "videotrans\translator\_base.py", line 100, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_chatgpt.py", line 150, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1211, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.InternalServerError: Error code: 503 - {'error': {'message': 'Service temporarily unavailable', 'type': 'api_error'}}


=
system:Windows-10-10.0.22000-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/DownloadFiles/firefox/zip/win-pyvideotrans-v3.98-327

1 Replies

该错误表明调用 OpenAI 或兼容接口进行翻译时,服务端返回 "503 Service Temporarily Unavailable",即翻译服务暂时不可用。

解决方案:

  1. 检查网络代理设置:如果使用了代理(如 VPN/Clash),请确认代理地址填写正确(格式如 http://127.0.0.1:10809)且代理服务正常运行。若无需代理,请清空代理地址。
  2. 重试任务:这很可能是服务端临时过载或维护,等待几分钟后重新翻译即可。
  3. 检查 API URL 和 Key:在菜单栏 翻译设置OpenAI / 兼容接口 中,确认 API URLAPI Key 填写正确(例如 DeepSeek 的 URL 为 https://api.deepseek.com)。
  4. 更换翻译渠道:如果频繁出现该问题,可暂时改用其他翻译渠道,如 DeepL(需Key)、Google(需代理)、或本地 M2M100 模型。
  5. 降低并发:在 高级选项AI翻译渠道每批字幕行数 设为较小值(如 5),并增加 翻译后暂停秒(如 3-5秒),避免请求过频。

请查阅相关文档:

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.

Related resource