#2355 DeepLX 测试时报如下错误:503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate:Traceback (most recent ca

222.209* Posted at: 1 hour ago 👁6

DeepLX 测试时报如下错误:

503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate: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

1 Replies

此错误表明 DeepLX 翻译服务无法访问,通常是本地 DeepLX 服务未启动或配置错误。请按以下步骤排查:

  1. 确认 DeepLX 服务已启动

    • 确保你已在本地运行了 DeepLX 服务(例如,通过 Docker 或直接运行可执行文件)。
    • 访问 http://127.0.0.1:1188,如果服务正常,页面应显示 DeepLX 的相关信息。
  2. 检查 pyVideoTrans 中的配置

    • 在 pyVideoTrans 主界面,点击“翻译设置”。
    • 在“翻译渠道”中选择“DeepLX”。
    • 确认“API地址”一栏填写正确,默认应为 http://127.0.0.1:1188。如果您的 DeepLX 服务运行在其他端口,请相应修改。
  3. 检查防火墙/网络设置

    • 确保防火墙或安全软件没有阻止 127.0.0.1:1188 端口的本地连接。
  4. 重启服务

    • 尝试重启 DeepLX 服务,然后再次在 pyVideoTrans 中进行测试。

如果以上步骤均无法解决,请提供您启动 DeepLX 服务的具体方式和相关日志。

有用的文档链接: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

Trending Questions