#7020 [localllm] Cannot connect to http://127.0.0.1:11434/v1. Check network access or verify local server deployment.Request t

2601**721 Posted at: 1 hour ago

[localllm] Cannot connect to http://127.0.0.1:11434/v1. Check network access or verify local server deployment.
Request timed out.
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 101, in handle_request
File "httpcore\_sync\http11.py", line 143, in handle_request
File "httpcore\_sync\http11.py", line 113, in handle_request
File "httpcore\_sync\http11.py", line 186, in _receive_response_headers
File "httpcore\_sync\http11.py", line 224, in _receive_event
File "httpcore\_backends\sync.py", line 124, in read
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ReadTimeout: timed out

The a
......
\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1055, in request
openai.APITimeoutError: Request timed out.

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

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 71, in run
File "videotrans\translator\_base.py", line 209, 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 92, in _item_task
videotrans.configure.excepts.StopTask: [localllm] Cannot connect to http://127.0.0.1:11434/v1. Check network access or verify local server deployment.
Request timed out.

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: H:/index-3 (1080p aac)/index-3 (1080p_aac).mp4,
输出结果保存到文件夹: L:/Dub Studio/index-3 (1080p_aac)-mp4,
临时文件夹: C:/AIDubbingSuite/Apps/pyVideoTrans/tmp/23224/9e9729ddd2
已选 清理已存在
已启用CUDA加速
未选 降噪
已选 识别说话人,最大说话人数量不限制
STT Service:faster-whisper(Built-in), large-v3, 发音语言: English, 断句方式:默认断句
TranslateSrt:CompatibleAI/LocalModel,原始语言:English,目标语言:Vietnamese, 已选 SendSRT
TTS Service:OmniVoice(Built-in), 角色:clone, 配音语言:Vietnamese, 未选 二次语音识别
音量:+5%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: No Subtitles
已选 分离人声与背景声, 已选 重新嵌入背景声, 背景音量0.8, 背景声音时长 短于 视频时长时: 拉长(降速播放),存在分离后的纯净人声文件,存在分离后的背景声音文件
已选 仅输出mp4


=
system:Windows-10-10.0.19045-SP0
version:v4.11
frozen:True
language:en
root_dir:C:/AIDubbingSuite/Apps/pyVideoTrans

1 Replies

#1 DeepSeek reply at 1 hour ago

This is a timeout connecting to your local LLM server at http://127.0.0.1:11434/v1 (typically Ollama). The server is either not running, hung, or too slow to respond within the request timeout.

Please follow these steps to fix it:

  1. Verify the local server is running — Open a browser and go to http://127.0.0.1:11434. If you don't see the Ollama UI/response, the service is not started. Launch Ollama (ollama serve) and make sure the model is pulled.
  2. Test the API endpoint directly — Run this in a terminal (CMD):

    curl http://127.0.0.1:11434/v1/models

    If this times out or fails, the issue is with your Ollama installation, not pyVideoTrans.

  3. Fill in an API key — For Ollama's OpenAI-compatible endpoint, enter any non-empty key in the software's API key field (e.g. ollama). An empty key can cause connection rejection.
  4. Ensure the address is correct — Use http://127.0.0.1:11434/v1. Do not use 0.0.0.0, and do not leave a trailing slash if it causes issues.
  5. Reduce translation batch size — Go to 菜单 → 工具 → 高级选项 → 字幕翻译调整 and set AI翻译渠道每批字幕行数 to 1. Local small models are slow; sending too many lines at once causes timeouts.
  6. Disable "发送完整字幕" — If you are using a small local model (e.g. 7B), uncheck 发送完整字幕 in the translation settings. Small models struggle with full-context prompts and may time out or produce garbled output.
  7. Clear proxy if set — Local services automatically bypass proxy. If you entered a proxy in the main interface, clear it and save.
  8. Increase timeout — If your local model is genuinely slow (large model on CPU), consider switching to a smaller model, or use a GPU-accelerated model.

If you've verified the server is running and still get a timeout, open logs/ folder and provide the latest log file's bottom ~30 lines for further diagnosis.

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