#5418 Connection error.

15.235* Posted at: 12 hours ago

[WhisperX] 该渠道需另行部署并启动后可用
Connection error.:
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 99, in handle_request
File "httpcore\_sync\connection.py", line 76, in handle_request
File "httpcore\_sync\connection.py", line 122, in _connect
File "httpcore\_backends\sync.py", line 205, in connect_tcp
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "openai\_base_client.py", line 1037, in request
File "openai\_client.py", line 440, in _send_request
File "openai\_client.py", line 418, in _send_with_auth_retry
File "openai\_base_client.py", line 964, in _send_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.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

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

Traceback (most recent call last):
File "videotrans\recognition\_whisperx.py", line 32, in _exec
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\audio\transcriptions.py", line 485, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1072, in request
openai.APIConnectionError: Connection error.

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

Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 191, in run
File "videotrans\recognition\_base.py", line 90, in run
File "videotrans\recognition\_whisperx.py", line 60, in _exec
videotrans.configure.excepts.StopTask: [WhisperX] 该渠道需另行部署并启动后可用
Connection error.


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:zh
root_dir:D:/Tool/win-pyvideotrans-v4.03-0622

1 Replies

这是由于 WhisperX 服务未启动或地址配置错误导致的连接被拒绝。

  1. 确认服务已启动:打开 WhisperX 的部署程序(如 api.py),确保服务正在运行。
  2. 检查 API 地址:在软件菜单 语音识别设置 -> WhisperX 中,确认填写的 API 地址与启动的服务端口一致(默认 http://127.0.0.1:9000)。
  3. 检查防火墙/代理:确保本地防火墙未阻止该端口,且代理设置未影响本地连接(建议清空代理文本框)。

请查阅相关文档:

Post Your Reply