#7383 502 Server Error: Bad Gateway for url: https://edge.microsoft.com/translate/translatetext?from=&to=zh-Hans&isEnterpriseC

112.45**1 Posted at: 2 hours ago

502 Server Error: Bad Gateway for url: https://edge.microsoft.com/translate/translatetext?from=&to=zh-Hans&isEnterpriseClient=false
Traceback (most recent call last):
File "videotrans\translator\_base.py", line 67, in run
File "videotrans\translator\_base.py", line 105, 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\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 73, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", line 41, in _item_task
File "requests\models.py", line 1026, in raise_for_status
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://edge.microsoft.com/translate/translatetext?from=&to=zh-Hans&isEnterpriseClient=false

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: G:/迅雷下载/录音安装文件/录音视频英文教学/ADSR Sounds - Mixing For The Kick/Mixing For The Kick PT2 - Mixing Philosophy.mp4,
输出结果保存到文件夹: G:/迅雷下载/录音安装文件/录音视频英文教学/ADSR Sounds - Mixing For The Kick/_video_out/Mixing For The Kick PT2 - Mixing Philosophy-mp4,
临时文件夹: D:/win-pyvideotrans-v4.12-0913/tmp/29316/cdc3e52c37
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Xiaoyi(Female/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
已选 仅输出mp4
video_duration_ms=669866


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.12-0913

1 Replies

#1 DeepSeek reply at 2 hours ago

这是微软免费翻译接口(edge.microsoft.com)返回 502 网关错误导致,属于微软服务端的临时故障或接口不稳定,并非软件本身的问题。

处理办法(任选其一):

  1. 更换翻译渠道(推荐):微软免费翻译接口不稳定已非首次,建议改用 DeepSeek 等 AI 渠道,翻译质量也更好。

    • 前往 https://platform.deepseek.com/ 注册并充值(可自定义充值 1 元),获取 API Key
    • 将 Key 填入软件顶部菜单 翻译设置 → DeepSeek
    • 在主界面翻译渠道下拉里选择 Deepseek 再重新执行
  2. 稍后重试:如果只是微软临时故障,稍等 10~30 分钟后重新执行,可能自行恢复。
  3. 使用本地翻译模型:选择 M2M100(内置) 渠道,完全离线翻译,不依赖在线服务。第一次使用会自动在线下载模型(存放位置 软件目录/models/m2m100_12b)。
注意:本次任务勾选了 清理已生成,重新执行时会重新进行语音识别(较耗时)。若你已有转录好的字幕文件,可取消勾选 清理已生成 以跳过语音识别阶段。

请查阅相关文档:

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