#1722 videotrans.configure._except.StopRetry: [WinError 10049] 在其上下文中,该请求的地址无效。

2409:8a02* Posted at: 6 days ago 👁29

[WinError 10049] 在其上下文中,该请求的地址无效。:
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 10049] 在其上下文中,该请求的地址无效。

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

Traceback (most recent call last):
File "videotrans\tts\_f5tts.py", line 301, in _run
File "gradio_client\client.py", line 153, in init

self.config = self._get_config()

File "gradio_client\client.py", line 882, in _get_config

r = httpx.get(

File "httpx\_api.py", line 195, in get
File "httpx\_api.py", line 109, in request
File "httpx\_client.py", line 825, 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.ConnectError: [WinError 10049] 在其上下文中,该请求的地址无效。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 312, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_f5tts.py", line 316, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_f5tts.py", line 303, in _run
videotrans.configure._except.StopRetry: [WinError 10049] 在其上下文中,该请求的地址无效。


=
system:Windows-10-10.0.26200-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/win-pyvideotrans-v3.86

1 Replies

此错误表明软件在尝试连接 F5-TTS 语音合成服务时,无法解析或访问您提供的服务器地址。错误 [WinError 10049] 在其上下文中,该请求的地址无效 通常意味着网络地址格式错误或无法访问。

请按以下步骤排查:

  1. 检查 F5-TTS 服务地址

    • 如果您使用的是本地部署的 F5-TTS,请确认服务已启动,并且地址(例如 http://127.0.0.1:7860)在浏览器中可以正常访问。
    • 如果地址正确,请检查防火墙或安全软件是否阻止了 pyVideoTrans 的网络连接。
  2. 检查网络代理设置

    • 如果您使用了网络代理,请确保在主界面第5行的“网络代理”框中填写了正确的代理地址和端口(例如 http://127.0.0.1:10809)。
    • 重要:如果 F5-TTS 服务在本地(127.0.0.1),通常不应通过代理访问。请尝试清空“网络代理”设置,或确保代理规则不会错误地转发本地地址。
  3. 更换配音渠道

    • 作为临时解决方案,您可以切换到其他可用的配音渠道,例如 Edge-TTS(免费)或 GPT-SoVITS(本地)。
  4. 验证地址格式

    • 确保在软件设置中填写的 F5-TTS 地址格式正确,应类似于 http://IP地址:端口https://域名,且不包含多余的空格或符号。

如果以上步骤无法解决,且您确认 F5-TTS 服务本身运行正常,请提供您在软件中配置的 F5-TTS 服务器地址,以便进一步分析。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions