#4015 Multiple connection retries failed, service may be temporarily unavailableTraceback (most recent call last): File "urll

131.196* Posted at: 3 hours ago 👁6

Multiple connection retries failed, service may be temporarily unavailable
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 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "urllib3\connection.py", line 325, in connect
File "urllib3\connection.py", line 205, in _new_conn
urllib3.exceptions.NameResolutionError: : Failed to resolve 'http' ([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: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: /apitts (Caused by NameResolutionError(": Failed to resolve 'http' ([Errno 11001] getaddrinfo failed)"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\_only_one.py", line 86, in run
File "videotrans\task\trans_create.py", line 715, in dubbing
File "videotrans\task\trans_create.py", line 993, in _tts
File "videotrans\tts\__init__.py", line 374, in run
File "videotrans\tts\_base.py", line 193, in run
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_clone.py", line 82, 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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_clone.py", line 60, in _run
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: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: /apitts (Caused by NameResolutionError(": Failed to resolve 'http' ([Errno 11001] getaddrinfo failed)"))


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:en
root_dir:E:/Models ia/pyvideotransv398

1 Replies

This error indicates that the software is unable to connect to a local TTS (Text-to-Speech) API service, specifically because the configured API address is incorrect or the service is not running. The error Failed to resolve 'http' shows the program is trying to connect to a host named http, which is invalid.

The root cause is an incorrectly configured API address for a local TTS service (like F5-TTS, CosyVoice, GPT-SoVITS, etc.) in the software's settings.

Solution Steps:

  1. Check the TTS Service: Ensure your local TTS service (e.g., F5-TTS, CosyVoice) is running. You should see its web interface or API server window open.
  2. Verify the API Address: In pyVideoTrans, go to Menu -> Translation Settings -> [Your TTS Channel] Settings Panel.

    • The API address must be a complete URL, typically like http://127.0.0.1:7860 or http://localhost:7860.
    • The error shows the host is set to just http. You must correct it to the full address, including the correct IP (127.0.0.1) and port number (e.g., 7860, 9880).
  3. Test the Connection: Open a web browser and try accessing the API address you configured (e.g., http://127.0.0.1:7860/docs or just http://127.0.0.1:7860). If the page doesn't load, the TTS service is not running correctly.
  4. Restart the Service: If the service isn't running, restart it according to its documentation. Then restart pyVideoTrans and try again.

If you are not using a local TTS service and this error appears unexpectedly:

  1. Check which "Dubbing Channel" you have selected in the main interface. If it's set to a local service (F5-TTS, CosyVoice, GPT-SoVITS, etc.) but you haven't deployed it, switch to a different channel like "Edge-TTS (free)".
  2. Alternatively, go to Menu -> Translation Settings and clear any incorrect API addresses you may have entered for TTS channels.

Please refer to the relevant documentation:

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.

Related resource

Similar issues already exist