#2177 requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate?key=17c0fc

112.199* Posted at: 1 day ago 👁15

503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate?key=17c0fcb4-3915-4b83-9d15-32044bc750ee: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=17c0fcb4-3915-4b83-9d15-32044bc750ee


=
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

您遇到的 503 错误表明连接 DeepLX 翻译服务失败。这通常是因为您配置的 DeepLX 本地服务地址 http://127.0.0.1:1188 没有正确运行。

请按以下步骤排查:

  1. 确认 DeepLX 服务已启动

    • 检查您是否已下载并启动了 DeepLX 的本地服务程序。它是一个独立的软件,需要先运行才能被 pyVideoTrans 调用。
    • 确保服务启动后,监听地址确实是 127.0.0.1:1188
  2. 在 pyVideoTrans 中测试连接

    • 在软件主界面,点击菜单栏的 工具 -> 设置
    • 在“翻译设置”选项卡中,找到“DeepLX”区域。
    • 将“API 地址”修改为您 DeepLX 服务实际的地址(例如 http://127.0.0.1:1188)。
    • 点击下方的 测试 按钮,查看是否能成功连接。
  3. 临时解决方案

    • 如果无法解决 DeepLX 服务问题,您可以暂时切换到其他翻译渠道,例如 Google翻译(需配置网络代理)或 微软翻译
  4. 检查防火墙/杀毒软件

    • 确保 Windows 防火墙或第三方杀毒软件没有阻止 DeepLX 服务(deeplx.exe 或类似程序)的网络连接。

如果上述步骤无法解决,请提供 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