#3060 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate:Traceback (most recent call last): File

240e:3bb* Posted at: 16 hours ago 👁18

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 103, in run
File "videotrans\translator\_base.py", line 124, 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 954, in run
File "videotrans\translator\_base.py", line 105, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deeplx.py", line 64, 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

5 Replies

这是由于本地部署的 DeepLX 翻译服务未启动或无法访问导致的 503 服务不可用错误。

  1. 启动 DeepLX 服务:确保你已按照文档部署了 DeepLX,并且其服务正在运行。通常,DeepLX 服务默认运行在 http://127.0.0.1:1188
  2. 检查服务状态:打开浏览器,访问 http://127.0.0.1:1188。如果页面显示 DeepLX 的相关信息,则服务正常;如果无法访问,则服务未启动。
  3. 检查配置:在 pyVideoTrans 的翻译渠道设置中,确认“翻译渠道”选择了“DeepLX”,并且“API地址”填写正确(默认为 http://127.0.0.1:1188)。
  4. 重新部署:如果服务未启动,请参考部署文档重新启动 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 103, in run
File "videotrans\translator\_base.py", line 124, 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 954, in run
File "videotrans\translator\_base.py", line 105, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deeplx.py", line 64, 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

这是由于本地部署的 DeepLX 翻译服务未启动或无法访问导致的 503 服务不可用错误。

  1. 启动 DeepLX 服务:确保你已按照文档部署了 DeepLX,并且其服务正在运行。通常,DeepLX 服务默认运行在 http://127.0.0.1:1188
  2. 检查服务状态:打开浏览器,访问 http://127.0.0.1:1188。如果页面显示 DeepLX 的相关信息,则服务正常;如果无法访问,则服务未启动。
  3. 检查配置:在 pyVideoTrans 的翻译渠道设置中,确认“翻译渠道”选择了“DeepLX”,并且“API地址”填写正确(默认为 http://127.0.0.1:1188)。
  4. 重新部署:如果服务未启动,请参考部署文档重新启动 DeepLX 服务。

请查阅相关文档:

服务返回错误:Insufficient Balance:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 972, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
File "videotrans\translator\_deepseek.py", line 52, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1192, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.APIStatusError: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}

这是由于 DeepSeek 翻译渠道的 API 账户余额不足导致的。检查账户余额:登录 DeepSeek 官方平台,查看你的 API 账户余额是否充足。更换翻译渠道:如果余额不足,可以暂时切换到其他翻译渠道,例如 Google 翻译、DeepL(需配置代理或本地服务)或本地大模型(如 Ollama)。充值或更换 API Key:为 DeepSeek 账户充值,或在 pyVideoTrans 的翻译设置中更换一个有效的、有余额的 API Key。请查阅相关文档:DeepSeek AI模型接入

Post Your Reply