#7338 Network connection failedTraceback (most recent call last):

2405**4f9 Posted at: 2 hours ago

Network connection failed
Traceback (most recent call last):
File "google\genai\_gaos\interactions.py", line 756, in create

return _speakeasy_parse_response(http_res)

File "google\genai\_gaos\interactions.py", line 489, in _speakeasy_parse_response

raise errors.CreateInteractionClientError(

google.genai._gaos.errors.createinteraction.CreateInteractionClientError: 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. To monitor your current usage, head to: https://ai.dev/rate-limit.

  • Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3.8-flash
    Please retry in 272.486634ms.

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

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.p
......
un
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 50, in _item_task
File "google\genai\_gaos\google_genai.py", line 278, in create

response = wrap_sdk_call(

File "google\genai\_gaos\lib\compat_errors.py", line 368, in wrap_sdk_call

return fn(*args, **kwargs)

File "google\genai\_gaos\interactions.py", line 758, in create

response_helpers.raise_parse_error(

File "google\genai\_gaos\utils\response_helpers.py", line 92, in raise_parse_error

raise parse_error from exc

google.genai._gaos.lib.compat_errors.RateLimitError: Error code: 429 - {'error': {'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. To monitor your current usage, head to: https://ai.dev/rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 20, model: gemini-3.8-flash\nPlease retry in 272.486634ms.', 'code': 'too_many_requests'}}

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Admin/Downloads/taivideonhanh_com_超市防线 第2季 第3集 丧尸爆发,地表无法生存,我在地铁搭建避难所!#超市防线2 #安夏 #末世文 #尸潮2 #卡姿兰黑磁粉饼_HD.mp4,
输出结果保存到文件夹: C:/Users/Admin/Downloads/_video_out/taivideonhanh_com_超市防线 第2季 第3集 丧尸爆发,地表无法生存,我在地铁搭建避难所!#超市防线2 #安夏 #末世文 #尸潮2 #卡姿兰黑磁粉饼_HD-mp4,
临时文件夹: D:/Phần Mềm Dịch/win-pyvideotrans-v4.12-0908/tmp/16692/cf18a0a69f
已选 清理已存在
未启用CUDA加速
已选 降噪
已选 识别说话人,最大说话人数量不限制
Kênh STT:faster-whisper(Tích hợp sẵn), large-v3-turbo, 发音语言: Tiếng Trung (Giản thể), 断句方式:默认断句
Kênh dịch SRT:Gemini AI,原始语言:Tiếng Trung (Giản thể),目标语言:Tiếng Việt, 已选 Gửi SRT
Kênh TTS:Edge-TTS (Miễn phí), 角色:NamMinh(Male/VN), 配音语言:Tiếng Việt, 未选 二次语音识别
音量:+25%, 语速:+3%, 未选 音频加速, 未选 视频慢速
未选 移除字幕间空隙, 已选 强制对齐字幕和声音
字幕: Phụ đề mềm


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:vn_VIETNAM
root_dir:D:/Phần Mềm Dịch/win-pyvideotrans-v4.12-0908

1 Replies

#1 DeepSeek reply at 2 hours ago

The core cause is your Gemini API free-tier quota exhaustion (Error 429, Quota exceeded ... limit: 20, model: gemini-3.8-flash), not a network fault—despite the "Network connection failed" message shown first.

Fixes:

  1. This is a rate/quota limit imposed by Google's free tier, not by pyVideoTrans. Wait for the quota window to reset, or switch to a paid plan / billing-enabled API key.
  2. Alternatively, switch the SRT translation channel to another provider: DeepSeek, OpenAI ChatGPT, or QwenMT (Aliyun Bailian). Enter your key in Menu → Translation Settings.
  3. To reduce request frequency and avoid hitting the limit, lower concurrent requests: Menu → Tools → Advanced Options → Translation — set Batch size (lines) for AI translation to a smaller value (e.g. 1~10), and set Pause (s) after each translation request to increase the interval.
  4. If the translation result appears abnormal afterward, delete the cache in tmp/translate_cache/ or check Clean generated on the main panel.

Note: The gemini-3.8-flash model in the error is not part of this software's default configuration—verify you are using the correct model/channel per the latest version.

Please refer to the related documents:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource