#704 openai.InternalServerError: Error code: 503 - [{'error': {'code': 503, 'message': 'The service is currently unavailable.

*4803:512b* Posted at: 2 hours ago 👁6

Error in subtitle translation:Error code: 503 - [{'error': {'code': 503, 'message': 'The service is currently unavailable.', 'status': 'UNAVAILABLE'}}][Gemini AI]:

Traceback (most recent call last):

File "videotrans\task\job.py", line 129, in run

File "videotrans\task\_translate_srt.py", line 48, in trans

File "videotrans\translator\__init__.py", line 865, in run

File "videotrans\translator\_base.py", line 81, in run

File "tenacity\__init__.py", line 480, in __call__

File "videotrans\translator\_gemini.py", line 60, in _item_task

File "openai\_utils\_utils.py", line 287, in wrapper

File "openai\resources\chat\completions\completions.py", line 1150, in create

File "openai\_base_client.py", line 1259, in post

File "openai\_base_client.py", line 1047, in request

openai.InternalServerError: Error code: 503 - [{'error': {'code': 503, 'message': 'The service is currently unavailable.', 'status': 'UNAVAILABLE'}}]

=====

Windows-10-10.0.19045-SP0

version:v3.80

frozen:True

language:en

1 Replies

This article was replied by DeepSeek
The error you're encountering is a 503 Service Unavailable error from the Gemini AI translation service. This indicates that the Gemini API servers are temporarily down or experiencing high load, and the issue is not with your pyVideoTrans software installation.

Quick Solution:

1. Wait and Retry: The simplest solution is to wait a few minutes and try the translation again. Service interruptions are often temporary.

2. Switch Translation Service: Go to the Translation Settings (Settings -> Translation Settings) and temporarily switch to a different translation service, such as Google Translate, Microsoft Translator, or OpenAI ChatGPT. This will allow your work to continue immediately.

Detailed Analysis:

  • The error log shows the problem occurred in the file _translate_srt.py, which means you were using the "Translate SRT Subtitles" feature.
  • The specific error (openai.InternalServerError) originates from the _gemini.py module, confirming the issue is with the connection to the Gemini API endpoint. The 503 status code is a standard HTTP error meaning the server is not ready to handle the request.

Since this is an external service issue, there is no need to check your local log files or reinstall the software. Your best course of action is to use an alternative translation provider until the Gemini service is stable again.

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