#4543 TaskCfgSTS(is_cuda=False, uuid='e938027061', cache_folder=None, target_dir='C:/Users/user/Documents/WhisperJAV/output/ja

183.179* Posted at: 1 day ago 👁23

翻译字幕阶段出错 [DeepSeek] 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: [Errno 11001] getaddrinfo failed

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

Traceback (most recent call last):
File "openai\_base_client.py", line 1005, 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: [Errno 11001] getaddrinfo failed

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

Traceback (most recent call last):
File "videotrans\task\job.py", line 173, in run
File "videotrans\task\_translate_srt.py", line 44, in trans
File "videotrans\translator\__init__.py", line 1040, in run
File "videotrans\translator\_base.py", line 97, in run
File "videotrans\translator\_base.py", line 161, in _run_srt
File "videotrans\translator\_deepseek.py", line 49, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1211, in create
File "openai\_base_client.py", line 1297, in post
File "openai\_base_client.py", line 1037, in request
openai.APIConnectionError: Connection error.
TaskCfgSTS(is_cuda=False, uuid='e938027061', cache_folder=None, target_dir='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-pyvideotrans-v3.99-0508/output/translate', source_language=None, source_language_code='Japanese', source_sub='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/pyvideotrans-test/FC2-PPV-4745079 不用小心 Taita Shin最強SSS級巨乳巨乳I杯巨大放屁巨大噴泉服飾店店員原始性愛性愛.ja.whisperjav.srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='Cantonese', target_sub='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/win-pyvideotrans-v3.99-0508/output/translate/FC2-PPV-4745079 不用小心 Taita Shin最強SSS級巨乳巨乳I杯巨大放屁巨大噴泉服飾店店員原始性愛性愛.ja.whisperjav.Cantonese.srt', target_wav=None, target_wav_output=None, name='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/pyvideotrans-test/FC2-PPV-4745079 不用小心 Taita Shin最強SSS級巨乳巨乳I杯巨大放屁巨大噴泉服飾店店員原始性愛性愛.ja.whisperjav.srt', noextname='FC2-PPV-4745079 不用小心 Taita Shin最強SSS級巨乳巨乳I杯巨大放屁巨大噴泉服飾店店員原始性愛性愛.ja.whisperjav', basename='FC2-PPV-4745079 不用小心 Taita Shin最強SSS級巨乳巨乳I杯巨大放屁巨大噴泉服飾店店員原始性愛性愛.ja.whisperjav.srt', ext='srt', dirname='C:/Users/user/Documents/WhisperJAV/output/ja.whisperjav/pyvideotrans-test', shound_del_name=None, translate_type=4)


=
system:Windows-10-10.0.26200-SP0
version:v3.99
frozen:True
language:zh
root_dir:F:/win-pyvideotrans-v3.99-0508

1 Replies

Connection error 的根本原因是 网络连接失败(DNS解析错误),DeepSeek API 在国内无法直接访问,需要配置网络代理或确认 API 地址正确。

解决方案:

  1. 配置网络代理
    在软件主界面的 “网络代理地址” 文本框中,填入你的 HTTP/HTTPS 代理地址,格式如 http://127.0.0.1:7890(端口以你的代理客户端的设置为准)。
  2. 检查 DeepSeek API URL
    确保在菜单 翻译设置 -> DeepSeek 中填写的 API URL 正确,默认应为 https://api.deepseek.com
  3. 测试连通性
    配置代理后,关闭并重启软件,或重新开始任务。如果仍然报错,检查代理是否正常工作,或临时关闭防火墙/安全软件。

请查阅相关文档:

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