微软必应翻译错误
Author: MoonChild-LDALCreated Jul 28, 2026Updated Aug 5, 2026
Labelsbug
问题描述 | Problem Description
微软翻译,所有字幕都翻译成了ERROR。 难道服务器有问题了吗? 月初的时候不行了,一星期之前又可以用,现在又这样,我也不知道什么原因什么规律。
日志信息(可选)| Logs (Optional)
2026-07-28 23:45:11 - subtitle_translator - ERROR - 必应翻译失败: 429 Client Error: Too Many Requests for url: https://api-edge.cognitive.microsofttranslator.com/translate?to=zh-Hans&api-version=3.0&includeSentenceLength=true
日志里从头到尾就是这个
===========字幕处理任务开始===========
时间:2026-08-06 02:12:01.701393
正在翻译字幕...
2026-08-06 02:12:02 - subtitle_translator - ERROR - 初始化必应翻译会话失败: 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
2026-08-06 02:12:02 - subtitle_translator - ERROR - 创建翻译器失败:初始化必应翻译会话失败: 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
2026-08-06 02:12:02 - subtitle_optimization_thread - ERROR - 优化失败: 初始化必应翻译会话失败: 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
Traceback (most recent call last):
File "D:\Soft\字幕\VideoCaptioner\app\core\subtitle_processor\translate.py", line 514, in _init_session
response.raise_for_status()
File "D:\Soft\字幕\VideoCaptioner\runtime\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Soft\字幕\VideoCaptioner\app\thread\subtitle_thread.py", line 180, in run
translator = TranslatorFactory.create_translator(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Soft\字幕\VideoCaptioner\app\core\subtitle_processor\translate.py", line 727, in create_translator
return BingTranslator(
^^^^^^^^^^^^^^^
File "D:\Soft\字幕\VideoCaptioner\app\core\subtitle_processor\translate.py", line 508, in __init__
self._init_session()
File "D:\Soft\字幕\VideoCaptioner\app\core\subtitle_processor\translate.py", line 519, in _init_session
raise RuntimeError(f"初始化必应翻译会话失败: {str(e)}")
RuntimeError: 初始化必应翻译会话失败: 404 Client Error: Not Found for url: https://edge.microsoft.com/translate/auth
=========================以上是历史日志=========================Source: WEIFENG2333/VideoCaptioner