#913 requests.exceptions.ProxyError: HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max re

113.111* Posted at: 1 day ago 👁12

翻译字幕阶段出错:代理地址错误或代理不可用,请尝试关闭或切换代理[Google(免费)]:

Traceback (most recent call last):

File "urllib3\connectionpool.py", line 787, in urlopen

File "urllib3\connectionpool.py", line 534, in _make_request

File "urllib3\connection.py", line 565, in getresponse

File "http\client.py", line 1374, in getresponse

File "http\client.py", line 318, in begin

File "http\client.py", line 287, in _read_status

http.client.RemoteDisconnected: Remote end closed connection without response

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

urllib3.exceptions.ProxyError: ('Unable to connect to proxy', RemoteDisconnected('Remote end closed connection without response'))

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

Traceback (most recent call last):

File "requests\adapters.py", line 667, in send

File "urllib3\connectionpool.py", line 841, in urlopen

File "urllib3\util\retry.py", line 519, in increment

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?from=&to=id&api-version=3.0&includeSentenceLength=true (Caused by ProxyError('Unable to connect to proxy', RemoteDisconnected('Remote end closed connection without response')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

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

File "videotrans\task\_translate_srt.py", line 48, in trans

File "videotrans\translator\__init__.py", line 792, in run

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

File "videotrans\translator\_base.py", line 97, 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 400, in

File "concurrent\futures\_base.py", line 439, in result

File "concurrent\futures\_base.py", line 391, in __get_result

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

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

File "requests\api.py", line 115, in post

File "requests\api.py", line 59, in request

File "requests\sessions.py", line 589, in request

File "requests\sessions.py", line 703, in send

File "requests\adapters.py", line 694, in send

requests.exceptions.ProxyError: HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?from=&to=id&api-version=3.0&includeSentenceLength=true (Caused by ProxyError('Unable to connect to proxy', RemoteDisconnected('Remote end closed connection without response')))

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

本条内容由 DeepSeek 回复
根据您提供的错误日志,问题出现在字幕翻译阶段,具体原因是 代理设置错误或代理服务器不可用。您正在使用 Google 翻译渠道,但配置的代理地址无法正常连接,导致软件无法访问 Google 翻译服务。

请按照以下步骤检查和解决:

1. 确认代理状态:首先,请确保您的代理软件(例如 Clash、V2Ray 等)正在运行,并且网络连接正常。

2. 检查代理地址:在 pyVideoTrans 软件中,请前往顶部菜单栏,选择 翻译设置

3. 配置网络代理:在翻译设置面板中,找到 网络代理 输入框。

  • 请确保您填写的代理地址格式正确。通常格式为 http://127.0.0.1:端口号socks5://127.0.0.1:端口号
  • 示例:如果您的代理监听地址是 127.0.0.1,端口是 7890,则应填写 http://127.0.0.1:7890

4. 测试连接:填写正确的代理地址后,可以尝试重新执行翻译任务。

5. 备选方案:如果问题依旧,或者您没有可用的代理,建议您切换翻译渠道。您可以尝试使用 微软翻译,该渠道通常无需代理即可在中国大陆直接访问。

如果以上步骤仍无法解决问题,请提供您在“翻译设置”中填写的代理地址截图,以便进行更精确的分析。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions