Knowledge

Errors

HTTP errors and asynchronous ingestion failures.

HTTPcodeAction
400INVALID_PARAMSInvalid fields, filters or pagination.
400LIMIT_EXCEEDEDCapacity or batch limit exceeded.
401UNAUTHENTICATEDCheck the API Key; compatible code is null.
404VECTOR_STORE_NOT_FOUNDKnowledge base is missing or inaccessible.
404FILE_NOT_FOUNDSource file does not exist.
404FILE_NOT_IN_STOREFile is not in this knowledge base.
404BATCH_NOT_FOUNDBatch does not exist.
404CHUNK_NOT_FOUNDSegment does not exist.
409VECTOR_STORE_INVALID_STATEOperation is not allowed in the current store state.
409FILE_INVALID_STATEOnly failed files can be retried.
413PAYLOAD_TOO_LARGEJSON body exceeds 1,000,000 bytes; compatible code can be null.
429RATE_LIMITEDRetry later.
500— / nullInternal error; retain the request ID and retry later.
501NOT_IMPLEMENTEDOperation is not implemented.
503PROVIDER_UNAVAILABLEProcessing service is temporarily unavailable; retry later.

Native error object

FieldTypeDescription
errorobjectrequired
error.code"INVALID_PARAMS" / "LIMIT_EXCEEDED" / "UNAUTHENTICATED" / "VECTOR_STORE_NOT_FOUND" / "FILE_NOT_FOUND" / "FILE_NOT_IN_STORE" / "BATCH_NOT_FOUND" / "CHUNK_NOT_FOUND" / "VECTOR_STORE_INVALID_STATE" / "FILE_INVALID_STATE" / "PAYLOAD_TOO_LARGE" / "RATE_LIMITED" / "NOT_IMPLEMENTED" / "PROVIDER_UNAVAILABLE"optional
error.messagestringrequired
error.detailsstring / nulloptional

OpenAI-compatible error object

FieldTypeDescription
errorobjectrequired
error.messagestringrequired
error.type"invalid_request_error" / "not_found_error" / "rate_limit_error" / "server_error"required
error.paramstring / nullrequired
error.code"INVALID_PARAMS" / "LIMIT_EXCEEDED" / "UNAUTHENTICATED" / "VECTOR_STORE_NOT_FOUND" / "FILE_NOT_FOUND" / "FILE_NOT_IN_STORE" / "BATCH_NOT_FOUND" / "CHUNK_NOT_FOUND" / "VECTOR_STORE_INVALID_STATE" / "FILE_INVALID_STATE" / "PAYLOAD_TOO_LARGE" / "RATE_LIMITED" / "NOT_IMPLEMENTED" / "PROVIDER_UNAVAILABLE" / nullrequired

Unknown-route 404 responses can contain only error.message; 401 can omit details, and compatible 413 can return code: null. Invalid URL encoding can also return HTML. Do not assume every failure has an error code.

Asynchronous file errors

A successful attachment does not mean the content is searchable. Check file status and read last_error when it is failed.

last_error.codeMeaningAction
unsupported_fileParser does not support this fileConvert to TXT, Markdown or a verified format
invalid_fileInvalid, empty, encrypted or over the estimated token limitCheck, decrypt or split the file
server_errorProcessing failed or exceeded 30 minutesRetry the failed file later
Export

On this page