#5940 翻译字幕阶段出错 [Google(免费)] 429 Client Error: Too Many Requests for url: https://api-edge.cognitive.microsofttranslator.com/tr

2409:8a55* Posted at: 1 day ago

翻译字幕阶段出错 [Google(免费)] 429 Client Error: Too Many Requests for
Traceback (most recent call last):

File "videotrans\translator\_base.py", line 66, 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\task\job.py", line 35, in run

File "videotrans\task\job.py", line 135, in process_task

File "videotrans\task\translate_srt.py", line 47, in trans

File "videotrans\translator\_runner.py", line 63, in run

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

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

File "videotrans\translator\_microsoft.py", line 39, in _item_task

File "requests\models.py", line 1026, in raise_for_status

requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for
cfg=TaskCfgSTS(uuid='dca5dd31f3', name='E:/字幕源文件/新增/有角色名/080.《The Miller,His Son, and the Donkey》(1).srt', dirname='E:/字幕源文件/新增/有角色名', noextname='080.《The Miller,His Son, and the Donkey》(1)', basename='080.《The Miller,His Son, and the Donkey》(1).srt', ext='srt', target_dir='D:/win-pyvideotrans/output/translate', cache_folder=None, is_cuda=False, source_language=None, source_language_code='en', source_sub='E:/字幕源文件/新增/有角色名/080.《The Miller,His Son, and the Donkey》(1).srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='ru', target_sub='D:/win-pyvideotrans/output/translate/080.《The Miller,His Son, and the Donkey》(1).ru.srt', target_wav=None, target_wav_output=None, translate_type=0)


=
system:Windows-10-10.0.19045-SP0
version:v4.04
frozen:True
language:zh
root_dir:D:/win-pyvideotrans

1 Replies

这是由于您的请求频率超过了微软翻译服务的限制,触发了 429 状态码(Too Many Requests)。建议按以下步骤缓解:

  1. 增加翻译暂停秒数

    • 打开 菜单 -> 工具/选项 -> 高级选项 -> 字幕翻译调整
    • 翻译后暂停秒 从默认值调高至 5~10 秒
  2. 降低每批字幕行数

    • 同一面板中,将 传统翻译渠道每批字幕行数 从默认值降低至 10~20

修改后保存配置,重新执行翻译任务即可。

请查阅相关文档:

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource