#5972 Request timed out.Traceback (most recent call last):

46.250* Posted at: 8 hours ago

Request timed out.
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 317, in handle_request
File "httpcore\_sync\http11.py", line 383, in start_tls
File "httpcore\_backends\sync.py", line 152, in start_tls
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectTimeout: _ssl.c:1000: The handshake operation timed out

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

Traceback (most recent call last):
File "openai\_base_client.py", line 1005, 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.ConnectTimeout: _ssl.c:1000: The handshake operation timed out

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

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 44, in run
File "videotrans\task\trans_create.py", line 360, in recogn
File "videotrans\recognition\__init__.py", line 250, in run
File "videotrans\recognition\_base.py", line 143, in run
File "videotrans\recognition\_openairecognapi.py", line 37, in _exec
File "videotrans\recognition\_openairecognapi.py", line 91, in _thrid_api
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\audio\transcriptions.py", line 483, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1023, in request
openai.APITimeoutError: Request timed out.


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

1 Replies

这是由于网络连接问题,无法与 OpenAI 的服务器完成 SSL 握手,导致请求超时。您正在使用 OpenAI 语音识别 API,但当前网络环境无法直接访问该服务(国内需科学上网)。

解决方案:

  1. 配置网络代理:在软件主界面(翻译视频功能)第 5 行「网络代理」处填写您的代理地址,格式如 http://127.0.0.1:7890(具体端口请根据您的代理软件确定)。
  2. 检查代理服务:确保您的 VPN 或代理软件已开启,并且允许本机流量通过。
  3. 改用国内可用渠道:如果无法使用代理,请将语音识别渠道切换为「faster-whisper(本地内置)」或「Qwen-ASR(本地内置)」等无需代理的本地模型。
  4. 检查 API 密钥:在「菜单 → 翻译设置 → OpenAI」中确认 API 地址为 https://api.openai.com/v1,且密钥正确、余额充足。

如果问题仍然存在,请提供 logs/ 目录下最新日志文件的最后 30 行内容,以便进一步分析。

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.

Dondate via ko-fi.com

Dondate via PayPal

Related resource