#4773 httpx.ProxyError: 405 Not Allowed

2406:da18* Posted at: 1 day ago

:
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 298, in handle_request
httpcore.ProxyError: 405 Not Allowed

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

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 348, in run
File "videotrans\tts\_base.py", line 178, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 68, in _run
File "elevenlabs\text_to_speech\client.py", line 157, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\text_to_speech\raw_client.py", line 142, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\core\http_client.py", line 363, in stream
File "contextlib.py", line 135, in enter
File "httpx\_client.py", line 868, in stream
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ProxyError: 405 Not Allowed


=
system:Windows-10-10.0.22621-SP0
version:v3.97
frozen:True
language:zh
root_dir:D:/pyvideo

1 Replies

httpx.ProxyError: 405 Not Allowed 说明代理服务器拒绝了当前请求,通常是因为 代理配置错误代理服务不支持 HTTPS 隧道

解决方法

  1. 检查“网络代理地址”设置是否正确
    格式必须为 http://IP:端口,例如 http://127.0.0.1:7890不要使用 socks5://https:// 开头等格式,软件仅支持 HTTP 代理。
  2. 确认代理服务支持 CONNECT 方法
    部分代理服务(如一些公共代理、公司内网代理)会禁用 HTTPS 隧道,导致 405 Not Allowed。请更换一个支持 HTTPS 的代理,或临时关闭代理。
  3. 如果不需要代理,请完全清空该输入框
    不需要代理时务必留空,错误的代理地址会直接导致网络请求失败。
  4. 重试任务:修改后重新执行配音。

请查阅相关文档:

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.

Related resource