#6216 多次重试连接失败,服务可能暂时不可用:Traceback (most recent call last):

2409:895e* Posted at: 55 minutes ago

多次重试连接失败,服务可能暂时不可用:
Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 60, in create_connection
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

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

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 488, in _make_request
File "urllib3\connectionpool.py", line 464, in _make_request
File "urllib3\connectionpool.py", line 1093, in _validate_conn
File "urllib3\connection.py", line 753, in connect
File "urllib3\connection.py", line 205, in _new_conn
urllib3.exceptions.NameResolutionError: : Failed to resolve 'mp.api.speechmatics.com' ([Errno 11001] getaddrinfo failed)

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

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='mp.api.speechmatics.com', port=443): Max retries exceeded with url: /v1/api-keys?sk=O8jLx7WCUs6I2j1V3LLKlrhhXN67dkIE (Caused by NameResolutionError(": Failed to resolve 'mp.api.speechmatics.com' ([Errno 11001] getaddrinfo failed)"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 206, in run
File "videotrans\recognition\_base.py", line 92, in run
File "videotrans\recognition\_recognapi.py", line 66, in _exec
File "requests\api.py", line 115, in post
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 677, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='mp.api.speechmatics.com', port=443): Max retries exceeded with url: /v1/api-keys?sk=O8jLx7WCUs6I2j1V3LLKlrhhXN67dkIE (Caused by NameResolutionError(": Failed to resolve 'mp.api.speechmatics.com' ([Errno 11001] getaddrinfo failed)"))


=
system:Windows-10-10.0.22631-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是 DNS 域名解析失败导致的:系统无法将 mp.api.speechmatics.com 解析为 IP 地址(错误码 11001 getaddrinfo failed),原因是网络无法连接该服务器或 DNS 解析被阻断。

处理步骤:

  1. 确认网络可正常访问外网;mp.api.speechmatics.com 属于国外服务,中国大陆网络直连通常不稳定,需要科学上网。
  2. 若你使用了代理,请在软件主界面「网络代理」处填写正确代理地址,格式如 http://127.0.0.1:7860(换成你自己的代理端口);若未使用代理,请清空代理框并保存。
  3. 检查浏览器能否打开 https://mp.api.speechmatics.com,若打不开则说明你的网络环境无法访问该域名,请更换网络或代理节点。
  4. 可尝试刷新本机 DNS:CMD 中执行 ipconfig /flushdns,或更换 DNS 为 8.8.8.8 后重试。

请查阅相关文档:

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