#5518 Connection error.

15.235* Posted at: 3 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

3 Replies

[WhisperX] 报错是因目标计算机积极拒绝连接,即软件无法访问你配置的 WhisperX 独立服务地址,服务未启动或地址填写错误。

解决方案:

  1. 确认 WhisperX 服务已启动:WhisperX 是独立的本地 API 服务,需另行部署并运行。请打开命令提示符,运行类似 uv run api.pypython api.py 的命令启动服务。
  2. 检查 API 地址配置:在软件菜单 → 语音识别设置 → WhisperX 面板中,确认填写的 API 地址与启动的服务端口一致(默认通常为 http://127.0.0.1:8000)。
  3. 测试连接:启动服务后,在浏览器访问该地址(如 http://127.0.0.1:8000),确认能正常返回响应。
  4. 若尚未部署 WhisperX:请先部署 whisperX-api,具体步骤可查阅官方文档。

请查阅相关文档:

ok

好的,如果后续还有其他问题,请随时提供日志或描述现象。

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: ko-fi.com/jianchang512

Related resource