#755 videotrans.configure._except.TranslateSrtError: 请求频繁触发429,请调大暂停时间: Error code: 429 - [{'error': {'code': 429, 'message':

*253.120* Posted at: 2 hours ago 👁6

翻译字幕阶段出错:Traceback (most recent call last):

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

File "videotrans\translator\_base.py", line 152, 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 "videotrans\configure\_except.py", line 71, in _raise

RuntimeError: 请求频繁触发429,请调大暂停时间: Error code: 429 - [{'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.', 'status': 'RESOURCE_EXHAUSTED'}}]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

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

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

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

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

videotrans.configure._except.TranslateSrtError: 请求频繁触发429,请调大暂停时间: Error code: 429 - [{'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.', 'status': 'RESOURCE_EXHAUSTED'}}]:Gemini

=====

Windows-10-10.0.19045-SP0

version:v3.78

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
问题原因是您使用的 Gemini 翻译渠道因请求频率过高或配额不足而触发了 429 错误。这通常是由于 Google 对 Gemini API 的调用频率限制或免费配额已用完导致的。

解决方法如下:

1. 检查并调整翻译设置:

  • 在软件主界面,点击 菜单 → 翻译设置
  • 找到您正在使用的 Gemini 翻译渠道,检查其配置。
  • 在翻译设置中,找到 “翻译后暂停时间/秒” 选项,显著增加这个值,例如从默认的 1 秒增加到 5 秒、10 秒甚至更高。这可以有效降低请求频率,避免触发 429 错误。

2. 检查您的 Gemini API 配额和账单:

3. 临时切换翻译渠道:

  • 如果调整暂停时间后问题依旧,或者您的 Gemini 配额确实已用完,建议暂时切换到其他翻译渠道。
  • 翻译设置 中,选择其他可用的渠道,例如 Google 翻译(需科学上网)、Microsoft 翻译(有频率限制但通常够用)或 DeepSeek 等。

4. (高级选项)调整并发翻译线程数:

  • 点击 菜单 → 工具 → 高级选项
  • 找到 “同时翻译的字幕数 (trans_thread)” 这一项,将其数值调小,例如从默认的 5 改为 1 或 2。这同样能降低瞬时请求压力。

总结: 核心解决方案是 增加“翻译后暂停时间”检查 Gemini API 配额。如果问题持续,更换翻译渠道是最直接有效的办法。

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