#545 openai.APIConnectionError: Connection error.

*6ea0:d32f* Posted at: 5 hours ago 👁8

连接API地址失败,请检查网络或代理: Connection error.: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 289, in handle_request

File "httpcore\_sync\connection.py", line 99, in handle_request

File "httpcore\_sync\connection.py", line 76, in handle_request

File "httpcore\_sync\connection.py", line 154, in _connect

File "httpcore\_backends\sync.py", line 152, in start_tls

File "contextlib.py", line 153, in __exit__

File "httpcore\_exceptions.py", line 14, in map_exceptions

httpcore.ConnectError: EOF occurred in violation of protocol (_ssl.c:997)

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

Traceback (most recent call last):

File "openai\_base_client.py", line 982, in request

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.ConnectError: EOF occurred in violation of protocol (_ssl.c:997)

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

Traceback (most recent call last):

File "videotrans\util\TestSrtTrans.py", line 17, in run

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

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

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

File "videotrans\translator\_deepseek.py", line 53, in _item_task

File "openai\_utils\_utils.py", line 287, in wrapper

File "openai\resources\chat\completions\completions.py", line 1150, in create

File "openai\_base_client.py", line 1259, in post

File "openai\_base_client.py", line 1014, in request

openai.APIConnectionError: Connection error.

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

1 Replies

Admin

查看是否填写或使用了代理,如果是,确保代理网络稳定,或者关掉代理后重试。

Post Your Reply

Trending Questions