#1602 httpx.RemoteProtocolError: Server disconnected without sending a response.

38.213* Posted at: 3 months ago 👁357

翻译字幕阶段出错:[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 146, in run
File "videotrans\task\trans_create.py", line 404, in trans
File "videotrans\translator\__init__.py", line 936, in run
File "videotrans\translator\_base.py", line 83, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 103, 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 913, in send
File "httpx\_client.py", line 941, in _send_handling_auth
File "httpx\_client.py", line 978, in _send_handling_redirects
File "httpx\_client.py", line 1013, 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.


=
system:Windows-10-10.0.26200-SP0
version:v3.83
frozen:True
language:zh
root_dir:E:/win-videotrans-v3.83

4 Replies

Gemini AI 翻译时出现网络连接失败,错误显示 "Server disconnected without sending a response"。这通常是由于网络连接不稳定、代理设置问题或 Gemini API 服务器临时故障导致。

请按以下步骤排查:

  1. 检查网络连接和代理

    • 确保网络连接稳定。
    • 如果你需要通过代理访问 Gemini,请在主界面第 5 行的“网络代理”中正确填写代理地址(格式如 http://127.0.0.1:7860)。
    • 如果不需代理,请确保“网络代理”设置为空。
  2. 降低请求频率

    • 前往 工具/选项 -> 高级选项
    • 在“字幕翻译调整”区域,将“每批字幕行数”设置为 1
    • 将“翻译后暂停秒”设置为 3 或更高。
  3. 验证 API Key

    • 在翻译设置中,确认 Gemini API Key 填写正确且有效。
  4. 重试操作

    • 网络问题可能是暂时的。等待几分钟后,在主界面勾选“清理已生成”,然后重新运行翻译任务。

如果以上步骤均无效,可以暂时切换至其他翻译渠道(如 Google 翻译或 DeepSeek)完成当前任务。

你的问题与 pyVideoTrans 视频翻译软件无关。作为技术支持 AI,我仅能解答关于该软件的安装、配置、使用及故障排查问题。请提供与 pyVideoTrans 相关的具体问题。

Если интересует клуб vr под день рождения — берите формат с таймингом, играми и паузами. Для vr развлечения в москве подходят vr командные игры: в них легче распределить роли. Для взрослых чаще выбирают стрелялки вр: запоминающийся финал.

[url=https://wearevr.io/]студия vr[/url]
[url=https://wearevr.io/tpost/0g0bv5krd1-immersivnost-pogruzhenie-v-virtualnuyu-r]цена вр очков[/url]
[url=https://wearevr.io/tpost/vy6iaeroz1-istoriya-vr-ot-pervih-ochkov-do-sovremen]виртуальная реальность когда появилась[/url]
[url=https://wearevr.io/]зал виртуальной реальности[/url]
[url=https://wearevr.io/]виар игры москва[/url]
[url=https://wearevr.io/tpost/kxti26ns21-snyat-loft-v-moskve-dlya-dnya-rozhdeniya]квесты в москве на 10 человек[/url]
[url=https://wearevr.io/]вр клуб[/url]
[url=https://wearevr.io/]вр клубы[/url]
[url=https://wearevr.io/tpost/c8982yvre1-vr-i-fitnes-kak-igri-pomogayut-ostavatsy]fitness vr[/url]
[url=https://wearevr.io/tpost/8lil85jg41-virtualnie-razvlecheniya-v-moskve-luchsh]развлечения для взрослых в москве[/url]

[url=https://wearevr.io/tpost/vy6iaeroz1-istoriya-vr-ot-pervih-ochkov-do-sovremen]vr история[/url]
[url=https://wearevr.io/tpost/vh7ffm97o1-immersivnie-priklyucheniya-chto-takoe-po]иммерсивная среда это[/url]
[url=https://wearevr.io/]виар клуб москва[/url]
[url=https://wearevr.io/]vr пушкино[/url]
[url=https://wearevr.io/]vr вднх[/url]

你的问题与 pyVideoTrans 视频翻译软件无关。作为技术支持 AI,我仅能解答关于该软件的安装、配置、使用及故障排查问题。请提供与 pyVideoTrans 相关的具体问题。

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