#4262 TaskCfgVTT(is_cuda=True, uuid='5863c1afa7', cache_folder='F:/win-pyvideotrans-v3.99-418/tmp/26992/5863c1afa7', target_di

220.246* Posted at: 1 hour ago 👁4

翻译字幕阶段出错 [字节大模型] Error code: 429 - {'error': {'code': 'RequestBurstTooFast', 'message': 'System protection triggered by request burst. Please slow down traffic growth and increase requests gradually before retrying. Request id: 02177704999780337079cdcc08b35ab782b1fd6e8da4cf09e8211', 'param': '', 'type': 'TooManyRequests'}}
Traceback (most recent call last):
File "videotrans\translator\_huoshan.py", line 45, in _item_task
File "openai\resources\responses\responses.py", line 898, 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 - {'error': {'code': 'RequestBurstTooFast', 'message': 'System protection triggered by request burst. Please slow down traffic growth and increase requests gradually before retrying. Request id: 02177704999780337079cdcc08b35ab782b1fd6e8da4cf09e8211', 'param': '', 'type': 'TooManyRequests'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\trans_create.py", line 659, in trans
File "videotrans\translator\__init__.py", line 969, in run
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, in _run_srt
File "videotrans\translator\_huoshan.py", line 55, in _item_task
RuntimeError: Error code: 429 - {'error': {'code': 'RequestBurstTooFast', 'message': 'System protection triggered by request burst. Please slow down traffic growth and increase requests gradually before retrying. Request id: 02177704999780337079cdcc08b35ab782b1fd6e8da4cf09e8211', 'param': '', 'type': 'TooManyRequests'}}
TaskCfgVTT(is_cuda=True, uuid='5863c1afa7', cache_folder='F:/win-pyvideotrans-v3.99-418/tmp/26992/5863c1afa7', target_dir='F:/AAA/buji/_video_out/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座-mp4', source_language='日语', source_language_code='ja', source_sub='F:/AAA/buji/_video_out/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座-mp4/ja.srt', source_wav='F:/win-pyvideotrans-v3.99-418/tmp/26992/5863c1afa7/ja.wav', source_wav_output='F:/AAA/buji/_video_out/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座-mp4/ja.m4a', target_language='简体中文', target_language_code='zh-cn', target_sub='F:/AAA/buji/_video_out/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座-mp4/zh-cn.srt', target_wav='F:/win-pyvideotrans-v3.99-418/tmp/26992/5863c1afa7/target.wav', target_wav_output='F:/AAA/buji/_video_out/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座-mp4/zh-cn.m4a', name='F:/AAA/buji/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座.mp4', noextname='第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座', basename='第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座.mp4', ext='mp4', dirname='F:/AAA/buji', shound_del_name=None, translate_type=13, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='No', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=True, detect_language='ja', recogn_type=4, model_name='kotoba-tech/kotoba-whisper-v2.0', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='F:/AAA/buji/_video_out/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座-mp4/第1回\u3000はじめよう\u3000簿記! ~資産・負債・純資産~ 簿記 高校講座.mp4', novoice_mp4='F:/win-pyvideotrans-v3.99-418/tmp/26992/5863c1afa7/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal=None, back_audio='', clear_cache=False, background_music=None, subtitle_type=3, only_out_mp4=True, recogn2pass=True, output_srt=2, copysrt_rawvideo=False)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v3.99-418

1 Replies

翻译时遇到429错误,是因为请求频率过快触发了字节火山大模型的限流机制。

解决方案:

  1. 打开顶部菜单 工具/选项高级选项字幕翻译调整
  2. “翻译后暂停秒” 设为 5-10(单位:秒),降低请求频率。
  3. “AI翻译渠道每批字幕行数” 适当调低,例如设为 10 左右,减少单次请求负载。
  4. 如果仍频繁报错,请关闭软件重新启动后重试,让限流状态重置。

请查阅相关文档:

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