#5033 TaskCfgVTT(uuid='c992fce846', name='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/gaining consciousness part1.mp4', d

2001:b07* Posted at: 6 hours ago

Request timed out.ASR Error:faster-whisper (Local), Trans Error: Local/Compatible AI, Dubbing Error:kokoro-TTS(LocalAPI)
Traceback (most recent call last):
File "C:\pyvideotrans.venv\lib\site-packages\httpx\_transports\default.py", line 101, in map_httpcore_exceptions

yield

File "C:\pyvideotrans.venv\lib\site-packages\httpx\_transports\default.py", line 250, in handle_request

resp = self._pool.handle_request(req)

File "C:\pyvideotrans.venv\lib\site-packages\httpcore\_sync\connection_pool.py", line 216, in handle_request

raise exc from None

File "C:\pyvideotrans.venv\lib\site-packages\httpcore\_sync\connection_pool.py", line 196, in handle_request

response = connection.handle_request(

File "C:\pyvideotrans.venv\lib\site-packages\httpcore\_sync\connection.py", line 101, in handle_request

return self._connection.handle_request(request)

File "C:\pyvideotrans.venv\lib\site-packages\httpcore\_sync\http11.py", line 143, in handle_request

......
contextlib.py", line 153, in exit

self.gen.throw(typ, value, traceback)

File "C:\pyvideotrans.venv\lib\site-packages\httpx\_transports\default.py", line 118, in map_httpcore_exceptions

raise mapped_exc(message) from exc

httpx.ReadTimeout: timed out

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

Traceback (most recent call last):
File "C:\pyvideotrans\videotrans\task\only_one.py", line 68, in run

trk.trans()

File "C:\pyvideotrans\videotrans\task\trans_create.py", line 585, in trans

target_srt = run_trans(

File "C:\pyvideotrans\videotrans\translator\__init__.py", line 858, in run

return _cls(**kwargs).run()#type:ignore

File "C:\pyvideotrans\videotrans\translator\_base.py", line 75, in run

raise e.last_attempt.exception()

File "C:\pyvideotrans.venv\lib\site-packages\tenacity\__init__.py", line 480, in call

result = fn(*args, **kwargs)

File "C:\pyvideotrans\videotrans\translator\_openaicompat.py", line 74, in _item_task

response = model.chat.completions.create(**kwargs, extra_body=self.extra_body)

File "C:\pyvideotrans.venv\lib\site-packages\openai\_utils\_utils.py", line 298, in wrapper

return func(*args, **kwargs)

File "C:\pyvideotrans.venv\lib\site-packages\openai\resources\chat\completions\completions.py", line 1215, in create

return self._post(

File "C:\pyvideotrans.venv\lib\site-packages\openai\_base_client.py", line 1332, in post

return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))

File "C:\pyvideotrans.venv\lib\site-packages\openai\_base_client.py", line 1055, in request

raise APITimeoutError(request=request) from err

openai.APITimeoutError: Request timed out.
TaskCfgVTT(uuid='c992fce846', name='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/gaining consciousness part1.mp4', dirname='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube', noextname='gaining consciousness part1', basename='gaining consciousness part1.mp4', ext='mp4', target_dir='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/_video_out/gaining consciousness part1-mp4', cache_folder='C:/pyvideotrans/tmp/36004/c992fce846', is_cuda=True, source_language='Italian', source_language_code='it', source_sub='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/_video_out/gaining consciousness part1-mp4/it.srt', source_wav='C:/pyvideotrans/tmp/36004/c992fce846/it.wav', source_wav_output='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/_video_out/gaining consciousness part1-mp4/it.m4a', target_language='English', target_language_code='en', target_sub='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/_video_out/gaining consciousness part1-mp4/en.srt', target_wav='C:/pyvideotrans/tmp/36004/c992fce846/target.wav', target_wav_output='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/_video_out/gaining consciousness part1-mp4/en.m4a', translate_type=8, tts_type=25, volume='+50%', pitch='+0Hz', voice_rate='+10%', voice_role='bm_lewis', voice_autorate=False, video_autorate=False, remove_silent_mid=True, align_sub_audio=False, detect_language='it', recogn_type=0, model_name='large-v3-turbo', shibie_audio=None, remove_noise=False, enable_diariz=True, nums_diariz=0, rephrase=0, fix_punc=False, subtitle_language=None, app_mode='biaozhun', subtitles='', targetdir_mp4='C:/MALANGA ENGLISH/GAINING CONSCIOUSNESS youtube/_video_out/gaining consciousness part1-mp4/gaining consciousness part1.mp4', novoice_mp4='C:/pyvideotrans/tmp/36004/c992fce846/novoice.mp4', is_separate=False, embed_bgm=False, instrument=None, vocal='C:/pyvideotrans/tmp/36004/c992fce846/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.26200-SP0
version:v4.01
frozen:False
language:en
root_dir:C:/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:37:08) [MSC v.1944 64 bit (AMD64)]

3 Replies

The core issue is an API timeout (httpx.ReadTimeout / APITimeoutError) during the translation stage. Your translation channel is set to "Local/Compatible AI" (translate_type=8), which is making an HTTP request to an external (or self-hosted) API endpoint that did not respond within the default timeout limit (likely 60 seconds).

1. Check Network & Proxy

  • If you are in China and the API endpoint is a foreign service (e.g., OpenAI, DeepSeek), you must configure a working proxy in the main window's "Network Proxy" field (format: http://127.0.0.1:7890).
  • If the API is a locally hosted service (e.g., Ollama, vLLM), ensure the endpoint is accessible and not overloaded.

2. Verify the API Configuration

  • Open Menu → Translation Settings → Compatible AI/Local Model.
  • Confirm the Base URL (e.g., http://localhost:11434/v1) and Model Name (e.g., qwen:latest) are correct.
  • Test the API manually (e.g., via curl or a simple chat request) to see if it responds quickly.

3. Increase Timeout or Reduce Batch Size

  • Go to Menu → Tools/Options → Advanced Options → Subtitle Translation Settings.
  • Decrease "AI Translation Channel Batch Lines" (e.g., from default to 5 or 3) to reduce each request's payload.
  • Increase "Pause After Translation Seconds" (e.g., 3) to avoid hitting rate limits, though timeout is the main problem.

4. Try a Different Translation Channel

If the local/API model is unreliable, switch to a more stable online channel like DeepSeek or OpenAI ChatGPT (with proper proxy) or the free Microsoft Translator (no proxy needed).


Next Steps

Reproduce the error after applying the proxy or timeout adjustments. If it persists, please provide the log file (logs/YYYYMMDD.log) from the software directory – specifically the last 30 lines around the error.

Relevant Documentation

no need to reply to this. I am just reporting the crash.

Noted. If the issue persists in future versions, feel free to report the logs again.

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