openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

When I use OpenAI through API, in what circumstances will OpenAI actively close the HTTP connection that I initiate?

Open Zhanhaoxin opened this issue 1 year ago • 1 comments

I/O error on POST request for "https://api.openai.com/v1/chat/completions": Unexpected end of file from server; nested ex ception is java.net.SocketException: Unexpected end of file from server

org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://api.openai.com/v1/chat/completions": Unexpected end of file from server; nested exception is java.net.SocketException: Unexpected end of file from server

Zhanhaoxin avatar Mar 23 '23 06:03 Zhanhaoxin

You can try to use https://github.com/forestwanglin/openai-java SDK if you use Java as client language.

forestwanglin avatar May 06 '23 03:05 forestwanglin

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Oct 13 '23 01:10 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Oct 24 '23 01:10 github-actions[bot]

Hi All, This issue is not close, as it is an exception that arises sometimes (as often as 5-10% for me !) it takes over 30 seconds to get this error, so the response time is sometimes very very long...

inconnu26 avatar Oct 31 '23 08:10 inconnu26