Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI errors not caught #4799

Closed
Timoeller opened this issue May 2, 2023 · 0 comments · Fixed by #4802
Closed

OpenAI errors not caught #4799

Timoeller opened this issue May 2, 2023 · 0 comments · Fixed by #4802
Assignees

Comments

@Timoeller
Copy link
Contributor

Describe the bug
When using the openai API a lot, e.g. during experiments, I get a lot of errors that are not caught.

In the previous haystack version we caught all OpenAIError, now it is just the OpenAIRateLimitError, see https://github.com/deepset-ai/haystack/pull/4460/files#r1182887215

Error message
File "/opt/homebrew/Caskroom/miniforge/base/envs/haystack/lib/python3.9/site-packages/openai/api_requestor.py", line 527, in request_raw
raise error.Timeout("Request timed out: {}".format(e)) from e
openai.error.Timeout: Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=600)

Process finished with exit code 1

Expected behavior
since the openAI API is quite unstable I would love to catch those errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants