Operations

Logs and errors

Follow every request in real time and fix the most common errors.

In Logs you see every request your agents receive, as it happens: who made it, what the agent did, how long it took and, if it failed, why.

What each log records

FieldDescription
AgentThe agent that handled the request.
Event typechat (it replied), accion (it requested or ran actions) or reporte.
SourceWhere it came from, for example api.
API keyThe name of the key your system called with.
Model usedThe model that generated the response.
DurationThe total time of the request, in milliseconds.
TokensThe model's input and output tokens.
StatusSuccess or Error, with its code.

Click a log to see its details, the full JSON and a link to the conversation.

Filter and follow live

  • Search by text and filter by agent, status, source, event type and date.
  • Turn on Live so new logs appear on their own.

Error codes

CodeCauseSolution
api_key_invalidaThe API key doesn't exist or is mistyped.Send the full key in Authorization: Bearer.
api_key_expiradaThe key expired.Renew it or create another one in API Keys.
api_key_desactivadaThe key is deactivated.Activate it from its card.
agente_inactivoThe agent is deactivated.Activate it in Customize → Settings.
negocio_inactivoThe business doesn't have an active subscription.Check your plan.
modelo_no_configuradoThe agent doesn't have an AI model connected (or it's paused).Connect it in Customize → General → AI model.
proveedor_errorThe AI provider didn't respond.Retry in a few seconds.
stream_interrumpidoThe streaming response was cut off.Retry the request.
error_internoAn internal error occurred in Qaalia.Retry; if it persists, contact us.

HTTP codes

HTTPWhen it happens
400The body isn't valid JSON, the message is missing or an attachment isn't valid.
401The API key is missing or isn't valid.
402Your plan doesn't allow the request (the reason comes in codigo).
405The method isn't POST.
413The message exceeds 200,000 characters.
429You exceeded your plan's requests per minute. Wait the seconds in reintentar_en.
500Authentication error or the model isn't available.
502The model returned no content or the provider failed.
429 and 502 errors are temporary: retry with an increasing wait. The rest require a change in your request or your configuration.

Frequently asked questions

How long is the history kept?
Depending on your plan: 30 days on Starter, 90 on Pro and 365 on Enterprise.
My system says it failed, but I don't see the log
If the request didn't reach Qaalia (for example, because of a network error on your server), there won't be a log. Check your system's URL and connection.