1
0
Fork 0
docsearch/packages/website/docs/v4/askai-errors.mdx
Vasco Bettencourt f6e5541191
Fix typos in askai-errors.mdx
Corrected typos and improved clarity in error documentation.
2025-09-15 14:59:06 +01:00

65 lines
2.1 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Ask AI Errors Reference
---
This is a reference to error codes and their definitions that can be returned from the Ask AI Chat.
## General API errors
---
### UNAUTHORIZED
There was an issue validating the auth token for the request.
### FORBIDDEN
Access to a resource is not available or not allowed for the requester.
> **Solution:** Make sure that your domain is [whitelisted](/docs/v4/askai-whitelisted-domains) and that you are using the correct `assistantId`.
### BAD_INPUT
The request included data that could either not be used to find a resource, or the data was malformed.
### TOO_MANY_ATTEMPTS
There have been too many requests made within a designated window. The requests are being rate limited.
> **Solution:** Wait for the rate limit window to pass and then try again.
## Ask AI chat errors
---
### AI_STREAM_ERROR
A general case error that occurred while communicating with the upstream provider. This could include stream processing issues, data corruption, or issues with the provider itself.
### AI_API_CALL
There was an issue specifically with communicating with the upstream provider.
> **Solution:** Check the provider's API status page(s) to see if they are experiencing any ongoing issues.
### AI_INVALID_API_KEY
The upstream provider reported that there was an issue with the supplied API key.
> **Solution:** Make sure to double-check that you are using the correct API key for your assistant; and that it has the correct permissions.
### AI_INSUFFICIENT_BALANCE
The upstream provider could not process the chat request due to a billing issue.
> **Solution:** You will need to log in to your providers dashboard to remedy this issue.
### AI_NO_TOOL
Ask AI could not call a specific tool.
> **Solution:** Be sure not to ask for any specific tool calls within your custom prompt. Ask AI has specific tools it uses to give the best results.
### AI_RETRY
There were too many failed attempts at communicating with the upstream provider. This could be an issue on the provider's end, an issue with the supplied API key or an underlying network issue causing these retries.