Skip to content

Error Codes

This document summarizes the error codes, their meanings, and common trigger scenarios for the EO Platform data management service to help you quickly identify problems during debugging or operations. The platform's backend throws business exceptions via CommonAuthException, and the common module po_common_kit/common_auth's GlobalKsatExceptionHandler uniformly returns the following response structure:

json
{
  "code": "<int>",
  "message": "<string>"
}

All error code definitions are centrally maintained in ErrorCodeEnum.java. Please update it synchronously when adding or changing business exceptions.

General Authentication & Account Error Codes

Error CodeIdentifierMeaningCommon Trigger Scenarios
100TOKEN_NULLtoken is nullMissing Authorization request header
101TOKEN_ERRORtoken is invalid or expiredToken parsing failed or timed out
102USERNAME_PASSWORD_IS_NULLusername or password is nullMissing login parameters
103USER_NOT_FOUNDuser not registeredAccount does not exist
104PASSWORD_ERRORincorrect passwordLogin password does not match
105REG_REPEAT_ERRORusername already existsUsername already exists during registration
106USERID_WORKER_ID_EMPTYcannot generate user IDMissing distributed ID worker ID
107IMAGE_ID_WORKER_ID_EMPTYcannot generate image IDMissing distributed ID worker ID (for images)
108ID_NULLinvalid IDKey ID parameter is null
109ROLE_ALREADY_EXISTrole already existsNaming conflict when adding a new role
110ROLE_NOT_EXISTrole does not existInvalid role ID
111AUTHORITY_NOT_EXISTpermission does not existInvalid permission ID
112AUTHORITY_EXISTpermission already existsNaming conflict when adding a new permission
113PARAMS_ERRORrequest parameter errorParameter validation failed or illegal
114EMAIL_CODE_ERRORincorrect email codeVerification code does not match
115REG_EMAIL_REPEAT_ERRORemail already existsRegistration email is already in use
116REG_THIRD_REPEAT_ERRORthird-party account existsThird-party account is already bound
117EMAIL_CODE_EXPIREDemail code expiredVerification code has timed out
118OLD_PASSWORD_ERRORincorrect old passwordOld password validation failed during password change

Data Management Service Specific Error Codes (10000–10029)

Error CodeIdentifierMeaningCommon Trigger Scenarios
10000DATA_NOT_EXISTdata does not existQuery target is missing
10001PARENT_ID_NOT_FINDparent directory not foundParent is invalid when creating/moving a file
10002NEW_DIR_FAILfailed to create directoryUnderlying write exception
10003META_DATA_NOT_EXISTmetadata does not existInvalid metadata ID
10004DATA_FILE_NOT_EXISTdata file does not existInvalid file ID
10005METADATA_TASK_NOT_EXISTpublish task not existTask record is missing
10006DATA_PUBLISHINGdata is publishingRepeatedly initiating publishing
10007DATA_PUBLISHEDdata already publishedRepeatedly publishing
10008FILE_ID_NOT_FINDfile ID not foundCannot find file during callback or query
10009FILE_DOWNLOAD_ADDRESS_NOT_EXISTdownload address missingDownload address not generated after publish
10010NOT_PUBLISHED_COMPLETEpublish not completeQuerying or downloading data that is not yet complete
10011GET_LAYER_PUBLISHING_ADDRESS_EXCEPTIONALlayer publish address errorExternal publishing API failed
10012UER_AOI_NOT_EXISTuser AOI does not existInvalid AOI ID
10013METADATA_ANALYSIS_TASK_NOT_EXISTanalysis task not existInvalid analysis task ID
10014ANALYSIS_TASK_NOT_COMPLETEDanalysis task not completeTask is still running
10015API_CALL_FAILEDexternal API call failedException when calling third-party or internal service
10016AI_MODEL_SESSION_QUESTION_NOT_EXISTAI session question not existAI session data is missing
10017AI_MODEL_SESSION_QA_ACTION_NOT_EXISTAI session action not existAI behavior data is missing
10018AI_MODEL_SEMANTIC_RECOGNITION_ERRORAI semantic recognition errorModel cannot recognize the command
10019ANALYSIS_ALGORITHM_NOT_EXISTanalysis algorithm not existInvalid algorithm number
10020LOGIN_PASSWORD_FAILED_MAX_LIMITSpassword attempts exceeded≥10 consecutive incorrect attempts
10021RESET_PASSWORD_MAX_LIMITSreset password limit exceededMore than 5 times in 30 minutes
10022SEND_INVITE_FAILEDfailed to send invitationMail service exception
10023EXPORT_USER_FAILEDfailed to export usersExport process exception
10024IMPORT_USER_FAILEDfailed to import usersImport validation or write failed
10025WORK_ORDER_NO_EXISTEDwork order number existsDuplicate work order number
10026PARENT_NOT_FOLDERparent is not a folderMoving or creating under a file node
10027NEW_FILE_FAILfailed to create fileFile generation exception
10028CANNOT_MOVE_TO_CHILDcannot move to child dirPrevents directory self-containment
10029DATA_FILE_NOT_FINDdata file not foundMissing from DB or already deleted

Usage Suggestions

  1. Frontend Display: Prioritize using the code and message returned from the server. If necessary, map them to user-friendly text locally to avoid hardcoding.
  2. Log Troubleshooting: The server will log CommonAuthException. Combining this with the error code can quickly locate the trigger method and upstream/downstream calls.
  3. Change Synchronization: When adding or adjusting error codes, please update the common enum, this document, and the corresponding API documentation simultaneously to ensure team alignment.
  4. Automated Monitoring: Subscribe to key error codes (e.g., 10006, 10015, 10020) in your alerting system to respond promptly to high-frequency exceptions.