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

Raise APIError while 500 error is returned. #3607

Closed
1 task done
jung-hunsoo opened this issue May 1, 2023 · 4 comments
Closed
1 task done

Raise APIError while 500 error is returned. #3607

jung-hunsoo opened this issue May 1, 2023 · 4 comments
Labels
API access Trouble with connecting to the API Stale

Comments

@jung-hunsoo
Copy link

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Windows Subsystem for Linux (WSL)

Which version of Auto-GPT are you using?

Stable (branch)

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

No specific conditions are requred to reproduce this issue.

It's just an unexpected behavior.

Current behavior 😯

image

Expected behavior 🤔

Handle exception and continue to next job.

Your prompt 📝

# Paste your prompt here

Your Logs 📒

See the attached image above

@varunponda
Copy link

Hey @jung-hunsoo, This issue has already been reported #2553. Please feel free to follow that issue for updates and to add any additional information or comments there.

@k-boikov k-boikov added the API access Trouble with connecting to the API label May 1, 2023
@anonhostpi
Copy link

Hmm... I'm not sure how the backoff #214 handles response codes, but it may be worth implementing a try...catch around OpenAI calls that log these errors, but also instruct the user to check http://status.openai.com/ or to check 3rd party down dectectors like https://downdetector.com/status/openai/ in the specific case of 401+ errors.

Most 401+ errors from the OpenAI module are tied to how the OpenAI servers handles the http requests

Maybe worth even logging different suggested solutions to the user depending on each response code:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

@github-actions
Copy link

github-actions bot commented Sep 6, 2023

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

@github-actions github-actions bot added the Stale label Sep 6, 2023
@github-actions
Copy link

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API access Trouble with connecting to the API Stale
Projects
None yet
Development

No branches or pull requests

4 participants