Error Codes

CodeMeaningResolution
Parameter Errors
40000Invalid request parametersCheck parameter names, types, and formats
40001Requested data not foundCheck if resource ID (e.g., memory_id) is correct
40002Required field cannot be emptyProvide missing required fields
40003Field is emptyCheck if the provided list or object is empty
40006Unsupported typeCheck the value of the 'type' field
40007Unsupported file typeOnly upload allowed formats (.pdf, .docx, .doc, .txt, .json, .md, .xml)
40008Invalid Base64 contentCheck if the Base64 string contains illegal characters
40009Invalid Base64 formatCheck if the Base64 encoding format is correct
40010User ID too longuser_id length cannot exceed 100 characters
40011Conversation ID too longconversation_id length cannot exceed 100 characters
40020Invalid Project IDConfirm the Project ID format is correct
Authentication & Permission Errors
40100API Key authentication requiredAdd a valid API Key to the request header
40130API Key authentication requiredAdd a valid API Key to the request header
40132Invalid or expired API KeyCheck API Key status or generate a new one
Quota & Rate Limit Errors
40300Rate limit exceededGet more quota
40301Chat request token quota exceededReduce input content or get more quota
40302Chat response token quota exceededShorten expected output or get more quota
40303Chat length exceeds model limitReduce single input/output length
40304Total API call quota exceededGet more quota
40305Input content exceeds token limitReduce input content
40306delete_memory authentication failedConfirm if you have permission to delete this memory
40307Memory for deletion does not existCheck if the memory_id is valid
40308User for deletion does not existCheck if the user_id is correct
System & Service Errors
50000Internal server errorServer busy or anomaly, please contact support
50002Operation failedCheck operation logic or try again later
50004Memory service is temporarily unavailableRetry memory write/fetch operations later
50005Search service is temporarily unavailableRetry memory search operations later
Knowledge Base & Operations
50103File count exceeds limitThe number of files for a single upload should not exceed 20
50104Single file size exceeds limitEnsure single file does not exceed 100MB
50105Total file size exceeds limitEnsure total upload size does not exceed 300MB
50107Invalid file formatCheck and change file format
50120Knowledge base not foundConfirm if the knowledgebase_id is correct
50123Knowledge base not linked to projectConfirm KB is authorized for the current project
50131Task not foundCheck if task_id is correct (common in status queries)
50143Failed to add memoryAlgorithm service anomaly, please try again later
50144Failed to add messageFailed to save chat history
50145Failed to save feedback and write memoryAnomaly during feedback processing