Skip to content

AI

AI request failed

The AI service failed, timed out, or answered with something that could not be used. Nothing was saved. detail says which; trying again often succeeds.

HTTP 502AI_PROVIDER_FAILED

In the response

Besides the standard members type, title, status, detail, instance, plus code and requestId:

Nothing else. This error carries no errors or meta.

Example response

HTTP 502 · application/problem+json
{
  "type": "https://smartpathshaala.com/problems/ai-provider-failed",
  "title": "AI request failed",
  "status": 502,
  "detail": "<what went wrong this time>",
  "instance": "<the request path>",
  "code": "AI_PROVIDER_FAILED",
  "requestId": "<also sent as X-Request-Id>"
}

Values in angle brackets vary per request. Quote the requestId when reporting an error; it is how the server’s log line is found.