Hello,
Since yesterday morning I have been receiving GPT-4 API errors practically every time I send a query. Sometimes it happens that the first query will go through, but subsequent queries keep receiving errors like the one here:
Error: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=600). Retrying in 5 seconds...
Error: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=600). Retrying in 5 seconds..
Right now iām getting timouts or overloaded errors for every request.
Do you have same probblems? Itās API problem ? Is there any option to solve it?
Quite a few of us are getting problems, itās quite unreliable in the last few days. If youāre not getting timed out you may be getting 429s. There are a few other topics on it in this section. We cannot do much but wait.
My hypothesis is that itās because of the new plugins rollout, many people are using GPT-4.
Thanks :). Iām most getting timout, somteimtes 429.
Same intermittent āread timed outā errors here.
Iād like to know how to catch these errors and retry etc.
To catch the errors, you use the exception handling features of your language.
If itās python; wrap the call in a try:
except:
clause, for example.
Note that you should look at the error for specifically the errors you know how to re-try. There are many other kinds of errors that can happen where re-trying wonāt help, and will just make your integration flakier or burn API credits.
Effectively re-trying on errors is a pretty deep subject, that a single forum post probably isnāt the right spot to teachā¦
thanks @jwatte
Yes I do have a decorator with try/catch + retry + expo-backoff in my python code.
The key as you said is which exceptions to catch for the retries.
I was hoping I can catch a generic openai.error.OpenAIError
, but even with that, some failures leak through.
I have same problem. Even you catch error, thatās wont help. You probably will have ātimeout errorā or 502 erorr, which is caused by OPEN AI API overload.
Error: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=600). Retrying in 5 seconds...
You can try many different ways to solve itā¦ I have same script which work perfect in the past, after they publish plugins, api is timing out all the time with the same script.
Iām using GPT-4 and it llooks like itās overloaded from 5-7 days.
1 Like
I have the same problem with the API (GPT4)
Same problem, gpt4 stayed timeout error since midnight
Using gpt-3.5-turbo hereā¦ constant timeouts, itās unusable at the moment. 10+ retries in a row with a 60-second timeout. Having to tell customers that itās OpenAI, even though the status page doesnāt say thereās an issue.
Same here, my app was working fine up until a couple days ago, now getting:
Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.<locals>._completion_with_retry in 60.0 seconds as it raised Timeout: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out.