#4966 TaskCfgVTT(uuid='777ba972c7', name='E:/A Girl Wakes.mp4', dirname='E:/', noextname='A Girl Wakes', basename='A Girl Wake

191.6* Posted at: 1 day ago

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 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.ReadTimeout: 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 68, in run
File "videotrans\task\trans_create.py", line 583, in trans
File "videotrans\translator\__init__.py", line 855, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 70, 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 1023, in request
openai.APITimeoutError: Request timed out.
TaskCfgVTT(uuid='777ba972c7', name='E:/A Girl Wakes.mp4', dirname='E:/', noextname='A Girl Wakes', basename='A Girl Wakes.mp4', ext='mp4', target_dir='E:/_video_out/A Girl Wakes-mp4', cache_folder='C:/win-pyvideotrans-v4.00-525/tmp/10800/777ba972c7', is_cuda=True, source_language='English', source_language_code='en', source_sub='E:/_video_out/A Girl Wakes-mp4/en.srt', source_wav='C:/win-pyvideotrans-v4.00-525/tmp/10800/777ba972c7/en.wav', source_wav_output='E:/_video_out/A Girl Wakes-mp4/en.m4a', target_language='Portuguese', target_language_code='pt', target_sub='E:/_video_out/A Girl Wakes-mp4/pt.srt', target_wav='C:/win-pyvideotrans-v4.00-525/tmp/10800/777ba972c7/target.wav', target_wav_output='E:/_video_out/A Girl Wakes-mp4/pt.m4a', translate_type=8, tts_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role='Antonio(Male/BR)', voice_autorate=False, video_autorate=True, remove_silent_mid=False, align_sub_audio=True, detect_language='en', recogn_type=10, model_name='nova-3', shibie_audio=None, remove_noise=False, enable_diariz=False, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='E:/_video_out/A Girl Wakes-mp4/A Girl Wakes.mp4', novoice_mp4='C:/win-pyvideotrans-v4.00-525/tmp/10800/777ba972c7/novoice.mp4', is_separate=False, embed_bgm=True, instrument=None, vocal='C:/win-pyvideotrans-v4.00-525/tmp/10800/777ba972c7/vocal.wav', clear_cache=True, background_music='', subtitle_type=0, only_out_mp4=False, recogn2pass=False, output_srt=0, copysrt_rawvideo=False, loop_backaudio=1, backaudio_volume=0.8)


=
system:Windows-10-10.0.22631-SP0
version:v4.00
frozen:True
language:en
root_dir:C:/win-pyvideotrans-v4.00-525

1 Replies

The error indicates a network timeout when your system tried to reach the local AI/API service for translation (translate_type=8 – compatible AI/local model). This means the request to your local API did not get a response within the expected time.

Root Cause

  • The local API service (e.g., Ollama, custom endpoint) is not running, inaccessible, or too slow to respond.
  • Misconfigured API address, port, or proxy settings may also cause a timeout.

How to Fix

  1. Verify the local API is actually running

    • Check the terminal/console window where you started the service. It should show something like Listening on http://127.0.0.1:11434 (or other port).
    • Open a browser and visit http://127.0.0.1:11434 (or your configured URL). If you see an error or no response, the service is not ready.
  2. Check the API address and model name

    • Go to Menu → Translate Settings → Compatible AI / Local Model.
    • Ensure the Base URL is correct (e.g., http://127.0.0.1:11434/v1 for Ollama).
    • Ensure the Model name is exactly what you would pass to the API (e.g., qwen:latest, deepseek-chat).
    • If a proxy is required for the local API (unusual), fill it in the main interface's "Network Proxy" box; otherwise leave it empty.
  3. Reduce request size / increase timeout

    • Go to Menu → Tools / Options → Advanced Options → Subtitle Translation Adjustment.
    • Set AI translation batch subtitle lines to a smaller number (e.g., 5-10) to shorten each request.
    • Increase Translation pause seconds to 2-3 to avoid overwhelming the API.
    • If your local service can handle larger inputs, you may need to adjust its own timeout settings (not controlled by this software).
  4. Test connectivity

    • Open Command Prompt and run:
      curl -X POST http://127.0.0.1:11434/api/generate -d '{"model":"your-model","prompt":"test","stream":false}'
    • If curl is not available, use Invoke-WebRequest in PowerShell. An immediate timeout suggests the local service is not listening.
  5. Restart the local API

    • Sometimes the service hangs. Restart it and try again.

Reference Documentation

If the issue persists after these steps, please provide the last 30 lines of the log file (logs/ folder) and your API configuration (Base URL, Model name) for further diagnosis.

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. Dondate: ko-fi.com/jianchang512

Related resource