翻译字幕阶段出错:[Gemini AI] 网络连接失败:
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\connection.py", line 101, in handle_request
File "httpcore\_sync\http11.py", line 143, in handle_request
File "httpcore\_sync\http11.py", line 113, in handle_request
File "httpcore\_sync\http11.py", line 186, in _receive_response_headers
File "httpcore\_sync\http11.py", line 238, in _receive_event
httpcore.RemoteProtocolError: Server disconnected without sending a response.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\task\job.py", line 184, in run
File "videotrans\task\trans_create.py", line 423, in trans
File "videotrans\translator\__init__.py", line 931, in run
File "videotrans\translator\_base.py", line 80, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 132, in _item_task
File "google\genai\models.py", line 5783, in generate_content_stream
File "google\genai\models.py", line 4666, in _generate_content_stream
File "google\genai\_api_client.py", line 774, in request_streamed
File "google\genai\_api_client.py", line 671, in _request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.RemoteProtocolError: Server disconnected without sending a response.
TaskCfg(cache_folder='D:/videotrans/tmp17712/d1554b2c20', target_dir="E:/Iceberg President's Substitute Soldier King/_video_out/2", remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='英语', target_language='西班牙语', source_language_code='en', target_language_code='es', source_sub="E:/Iceberg President's Substitute Soldier King/_video_out/2/en.srt", target_sub="E:/Iceberg President's Substitute Soldier King/_video_out/2/es.srt", source_wav='D:/videotrans/tmp17712/d1554b2c20/en.wav', source_wav_output="E:/Iceberg President's Substitute Soldier King/_video_out/2/en.m4a", target_wav='D:/videotrans/tmp17712/d1554b2c20/target.wav', target_wav_output="E:/Iceberg President's Substitute Soldier King/_video_out/2/es.m4a", subtitles='', novoice_mp4='D:/videotrans/tmp17712/d1554b2c20/novoice.mp4', noextname='2', shibie_audio=None, targetdir_mp4="E:/Iceberg President's Substitute Soldier King/_video_out/2/2.mp4", instrument=None, vocal=None, back_audio='', background_music=None, app_mode='biaozhun', subtitle_type=2, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='clone', copysrt_rawvideo=False, clear_cache=True, translate_type=5, tts_type=20, recogn_type=6, model_name='large-v3', split_type=0, voice_autorate=True, video_autorate=True, cuda=True, name="E:/Iceberg President's Substitute Soldier King/2.mp4", basename='2.mp4', ext='mp4', dirname="E:/Iceberg President's Substitute Soldier King", shound_del_name=None, uuid='d1554b2c20', remove_silent_mid=False, align_sub_audio=True, enable_diariz=True, nums_diariz=0, auto_fix=True)
=
system:Windows-10-10.0.19045-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/videotrans