anthropics / anthropic-sdk-python

MIT License
1.51k stars 181 forks source link

An often error 'ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2570)' #735

Open vadim-su opened 2 weeks ago

vadim-su commented 2 weeks ago
Exception has occurred: APIConnectionError
Connection error.
ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2570)

During handling of the above exception, another exception occurred:

IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

anyio.BrokenResourceError: 

During handling of the above exception, another exception occurred:

httpcore.ReadError: 

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

httpx.ReadError: 

During handling of the above exception, another exception occurred:

httpcore.RemoteProtocolError: Server disconnected without sending a response.

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

httpx.RemoteProtocolError: Server disconnected without sending a response.

During handling of the above exception, another exception occurred:

ssl.SSLSyscallError: Some I/O error occurred (_ssl.c:1000)

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

anyio.BrokenResourceError: 

During handling of the above exception, another exception occurred:

httpcore.ConnectError: 

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

httpx.ConnectError: 

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

Did anyone face with the same error? How to fix this?