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

2401**5 Posted at: 1 hour ago

Network connection failed
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\http_proxy.py", line 344, 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 "google\genai\_gaos\basesdk.py", line 269, in do

http_res = client.send(req, stream=stream)

File "httpx\_cl
......
.py", line 85, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 47, 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 714, in create

http_res = self.do_request(

File "google\genai\_gaos\basesdk.py", line 291, in do_request

http_res = utils.retry(do, utils.Retries(retry_config[0], retry_config[1]))

File "google\genai\_gaos\utils\retries.py", line 264, in retry

return retry_with_attempt_count_backoff(

File "google\genai\_gaos\utils\retries.py", line 399, in retry_with_attempt_count_backoff

raise exception.inner

File "google\genai\_gaos\utils\retries.py", line 231, in do_request

res = func(attempt)

File "google\genai\_gaos\basesdk.py", line 274, in do

raise e

google.genai._gaos.lib.compat_errors.APIConnectionError: Server disconnected without sending a response.

trk=[TransCreate]: uuid='c5c231c82b', proxy_str='http://127.0.0.1:7890', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Downloads/1.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Downloads/_video_out/1-mp4,
临时文件夹: E:/BaiduNetdiskDownload/win-pyvideotrans-v4.16-1/tmp/14980/c5c231c82b
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:Gemini大模型识别, gemini-3.5-transcribe, 发音语言: 日语,
翻译渠道:Gemini AI,原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:7890, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=526299


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:E:/BaiduNetdiskDownload/win-pyvideotrans-v4.16-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是 Gemini AI 渠道调用 Google 服务器时网络连接被意外中断所致,最可能原因是您填写的代理 http://127.0.0.1:7890 不稳定、该代理 IP 被 Google 拒绝,或网络出现波动。

解决方案:

  1. 确认代理可用且能稳定访问 https://generativelanguage.googleapis.com;建议更换更稳定的 VPN/代理节点后重试。
  2. 检查代理地址格式,确保在主界面“对齐控制(Alignment)”行右侧的代理框中填写的是 http://127.0.0.1:7890 这类正确格式,且代理软件已运行、端口正确。若无需代理,请清空该文本框。
  3. 如果代理不稳定,可暂时改用 DeepSeek、OpenAI 等其他翻译渠道,或对 Gemini 渠道稍后重试。
  4. 如反复出现,可删除 tmp/translate_cache/ 下的翻译缓存后再试,避免命中异常缓存。

请查阅相关文档:

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