Intermittent Usage API 500 Errors

I’ve started seeing these errors, anyone else:

ERROR: 500 Server Error: Internal Server Error for url: https://api.openai.com/v1/usage?date=2023-06-11
{
  "error": {
    "message": "The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID abc123 in your email.)",
    "type": "server_error",
    "param": null,
    "code": null
  }
}

There will be 500 errors from time to time with any API based system and they should be handled gracefully, usually with a exponential progressive backoff and retry system after a number of initial retries.

Typically these issues go away after a short period.

1 Like

Yeah, you have to assume that they’ll happen inevitably. The OpenAI docs include some tips: OpenAI API