AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Raise APIError while 500 error is returned.

Open jung-hunsoo opened this issue 2 years ago • 2 comments

⚠️ Search for existing issues first ⚠️

  • [X] 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

jung-hunsoo avatar May 01 '23 03:05 jung-hunsoo

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.

varunponda avatar May 01 '23 05:05 varunponda

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

anonhostpi avatar May 10 '23 23:05 anonhostpi

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[bot] avatar Sep 06 '23 21:09 github-actions[bot]

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

github-actions[bot] avatar Sep 17 '23 01:09 github-actions[bot]