#3738 TaskCfgSTS(is_cuda=False, uuid='2ad8f87bc6', cache_folder=None, target_dir='E:/PH', source_language=None, source_languag

202.150* Posted at: 1 hour ago 👁8

Trans Error [Local/Compatible AI] Too many requests, please try again later or adjust settings Error code: 429 - {'extend_fields': {'traceId': '212e565c17741588095345822e1040', 'requestId': '1a3fc2eb87db317f6e8c0bb03f64866d'}, 'error_code': 429, 'message': 'Throttling: Throttling.AllocationQuota: Allocated quota exceeded, please increase your quota limit. For details, see: https://help.aliyun.com/zh/model-studio/error-code#token-limit, dash_request_id: 6319631a-dbd6-4e22-85b1-dc751f2ce6eb'}
Traceback (most recent call last):
File "videotrans\task\job.py", line 174, in run
File "videotrans\task\_translate_srt.py", line 45, in trans
File "videotrans\translator\__init__.py", line 970, in run
File "videotrans\translator\_base.py", line 102, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
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 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_localllm.py", line 55, 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 1297, in post
File "openai\_base_client.py", line 1070, in request
openai.RateLimitError: Error code: 429 - {'extend_fields': {'traceId': '212e565c17741588095345822e1040', 'requestId': '1a3fc2eb87db317f6e8c0bb03f64866d'}, 'error_code': 429, 'message': 'Throttling: Throttling.AllocationQuota: Allocated quota exceeded, please increase your quota limit. For details, see: https://help.aliyun.com/zh/model-studio/error-code#token-limit, dash_request_id: 6319631a-dbd6-4e22-85b1-dc751f2ce6eb'}
TaskCfgSTS(is_cuda=False, uuid='2ad8f87bc6', cache_folder=None, target_dir='E:/PH', source_language=None, source_language_code='Korean', source_sub='E:/PH/1.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='English', target_sub='E:/PH/1.English.srt', target_wav=None, target_wav_output=None, name='E:/PH/1.srt', noextname='1', basename='1.srt', ext='srt', dirname='E:/PH', shound_del_name=None, translate_type=8)


=
system:Windows-10-10.0.26200-SP0
version:v3.97
frozen:True
language:en
root_dir:E:/ytrans

1 Replies

This error is caused by exceeding the rate limit (quota) of the AI translation service you are using (Aliyun Model Studio). The error code 429 indicates "Too many requests".

The solution is to reduce the frequency of your translation requests to the service.

  1. Adjust Translation Settings in pyVideoTrans:

    • Go to Menu -> Tools/Options -> Advanced Options.
    • In the "Subtitle Translation Adjustment" section, find the following settings:

      • AI translation channel batch subtitle lines: Reduce this number (e.g., from 20 to 5 or 10). This sends fewer lines per request.
      • Pause seconds after translation: Increase this value (e.g., from 0 to 5 or 10 seconds). This adds a delay between each batch of translation requests.
    • Save the settings and restart your translation task.
  2. Check Service Quota (Aliyun):

    • The error message includes a link: https://help.aliyun.com/zh/model-studio/error-code#token-limit.
    • Visit that link or log into your Alibaba Cloud (Aliyun) Model Studio account to check if you have reached your allocated quota/token limit. You may need to wait for the quota to reset or purchase a higher quota plan.
  3. (Alternative) Switch Translation Channel:

    • If the issue persists, consider temporarily switching to a different translation channel (e.g., Google Translate, DeepSeek, or a local model like Ollama) to complete your current task.

Please refer to the relevant documentation:

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.

Related resource