#2179 requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate?key=sk-54d

112.199* Posted at: 1 day ago 👁15

503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate?key=sk-54dc5f28-04bb-419b-b043-f2751e900469:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 96, in _run_text
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 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 906, in run
File "videotrans\translator\_base.py", line 81, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deeplx.py", line 65, in _item_task
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate?key=sk-54dc5f28-04bb-419b-b043-f2751e900469


=
system:Windows-10-10.0.26100-SP0
version:v3.91
frozen:True
language:zh
root_dir:C:/Users/Shalom/Desktop/win-pyvideotrans-v3.91

1 Replies

这个错误表明您配置的 DeepLX 翻译服务(地址 http://127.0.0.1:1188)无法访问或服务未启动。DeepLX 是一个需要您自行部署的本地翻译服务。

核心原因:您设置的 DeepLX 服务地址 http://127.0.0.1:1188 没有响应。

解决方案

  1. 确认 DeepLX 服务是否已启动

    • 检查您是否已经下载并启动了 DeepLX 服务。DeepLX 不是 pyVideoTrans 内置的,需要您单独运行。
    • 通常,您需要运行一个名为 deeplx 的可执行文件或 Docker 容器,它默认会在 http://127.0.0.1:1188 上提供服务。
  2. 修改翻译渠道

    • 如果您没有运行 DeepLX 服务,请切换到其他可用的翻译渠道。
    • 在 pyVideoTrans 主界面,第 3 行“翻译设置” 中,将渠道从 DeepLX 更改为其他选项,例如:

      • 免费渠道Google(需要网络代理)、Microsoft
      • AI 大模型DeepSeekGeminiChatGPT 等(需要在“翻译设置”中配置相应的 API Key)。
  3. 检查网络和代理

    • 如果您确定 DeepLX 服务已在本机运行,请检查防火墙是否阻止了 1188 端口。
    • 在 pyVideoTrans 主界面 第 5 行 的“网络代理”中,确保代理设置正确(如果您使用代理)。对于本地服务 127.0.0.1,通常不需要设置代理。

临时处理:最快捷的方法是直接更换翻译渠道。如果您需要继续使用 DeepLX,请确保其服务程序正在运行。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions