#7316 Network connection failedTraceback (most recent call last):

183.23**9 Posted at: 2 hours ago

Network connection failed
Traceback (most recent call last):
File "httpx\_urlparse.py", line 409, in normalize_port
ValueError: invalid literal for int() with base 10: '3213;https=127.0.0.1:3213'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 70, in run
File "videotrans\translator\_base.py", line 153, in _run_srt
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\translator\_openaicompat.py", line 88, in _item_task
File "videotrans\translator\_openaicompat.py", line 47, in _create_completion
File "openai\_client.py", line 226, in init
File "openai\_base_client.py", line 909, in init
File "openai\_base_client.py", line 839, in init
File "httpx\_client.py", line 686, in init
File "httpx\_client.py", line 244, in _get_proxy_map
File "httpx\_client.py", line 245, in
File "httpx\_config.py", line 210, in init
File "httpx\_urls.py", line 117, in init
File "httpx\_urlparse.py", line 321, in urlparse
File "httpx\_urlparse.py", line 411, in normalize_port
httpx.InvalidURL: Invalid port: '3213;https=127.0.0.1:3213'

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/001/Desktop/9月11日 (2)(1)/OM201_1.mp4,
输出结果保存到文件夹: C:/Users/001/Desktop/_video_out/OM201_1-mp4,
临时文件夹: D:/新建文件夹/tmp/17800/0ed9821a34
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:泰国语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Niwat(Male/TH), 配音语言:泰国语, 未选 二次语音识别
音量:+60%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入硬字幕
代理地址:http=127.0.0.1:3213;https=127.0.0.1:3213


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/新建文件夹

1 Replies

#1 DeepSeek reply at 2 hours ago

<RESULT>
核心原因是网络代理地址格式填写错误。你在代理框中填写的是 http=127.0.0.1:3213;https=127.0.0.1:3213,软件将其当作了一个整体的端口号去解析,导致 Invalid port 报错,翻译请求根本无法发出。

正确格式应为单个 URL,而不是 http=xxx;https=xxx 这种拼接写法。

解决办法:

  1. 打开主界面 对齐控制 行右侧的网络代理文本框。
  2. 将内容清空,或改为标准格式,例如:

    • http://127.0.0.1:3213
    • 若代理支持 socks5:socks5://127.0.0.1:3213
  3. 保存后重新执行任务。

注意: 你使用的是 DeepSeek 翻译渠道,DeepSeek 为国内 API,默认不走代理,因此最省事的做法是直接清空代理框

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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

Related resource