#6424 翻译字幕阶段出错 [Google(免费)] 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/authTraceback (most rece

27.189.**9 Posted at: 1 hour ago

404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
Traceback (most recent call last):

File "videotrans\translator\_base.py", line 68, in run

File "videotrans\translator\_base.py", line 107, in _run_text

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 421, in exc_check

tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 135, in process_task

File "videotrans\task\translate_srt.py", line 47, in trans

File "videotrans\translator\_runner.py", line 63, in run

File "videotrans\translator\_base.py", line 74, in run

File "tenacity\__init__.py", line 480, in call

File "videotrans\translator\_microsoft.py", line 26, in _item_task

File "requests\models.py", line 1026, in raise_for_status

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
cfg=TaskCfgSTS(uuid='4194b087d6', name='G:/新建文件夹 (3)/19/34921493 (1) (1).srt', dirname='G:/新建文件夹 (3)/19', noextname='34921493 (1) (1)', basename='34921493 (1) (1).srt', ext='srt', target_dir='G:/新建文件夹 (3)/19', cache_folder=None, is_cuda=False, source_language=None, source_language_code='-', source_sub='G:/新建文件夹 (3)/19/34921493 (1) (1).srt', source_wav=None, source_wav_output=None, target_language=None, target_language_code='zh-cn', target_sub='G:/新建文件夹 (3)/19/34921493 (1) (1).zh-cn.srt', target_wav=None, target_wav_output=None, translate_type=0)


=
system:Windows-10-10.0.22621-SP0
version:v4.06
frozen:True
language:zh
root_dir:D:/pyvideotrans

1 Replies

这是微软免费翻译接口不可用导致的。界面显示 Google 翻译,但 Google 失败后软件自动切换到微软翻译重试,而微软翻译的认证地址 https://edge.microsoft.com/translate/auth 当前返回 404,可能服务临时故障或已关闭。

解决方案(任选其一):

  1. 使用 DeepSeek 翻译(推荐):

    • 前往 https://platform.deepseek.com 注册并充值(可充 1 元);
    • 获取 API Key;
    • 在软件 菜单 -> 翻译设置 -> DeepSeek 中填写密钥;
    • 回到主界面,在翻译渠道下拉框中选择 DeepSeek
  2. 使用 M2M100 本地翻译:

    • 在翻译渠道下拉框中选择 M2M100(内置)
    • 第一次使用时会自动在线下载模型,之后完全离线翻译。
  3. 如果仍需使用 Google 翻译:

    • 请确保软件中的 网络代理 已正确填写,例如 http://127.0.0.1:7860
    • 若代理未配置或不可用,Google 翻译会失败并自动回退到微软翻译,导致出现该 404 报错。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource