TcaplusDB Error Codes

TcaplusDB Error Codes

Error codeDescriptionDetailsShared or notSolution
2309TXHDB_ERR_RECORD_IS_NOT_SET_TTLThe record has no TTL setNIt is a single-record expiration-related error. The record has no TTL set and requires the project team to check the SetTTL
261TXHDB_ERR_RECORD_NOT_EXISTThe record does not existYThe record does not exist. The app needs to check whether it meets the expectation
-256It usually occurs when calling RegisterTable, please check: 1. Whether the table parameters corresponding to the RegisterTable have been successfully added and approved (common tables do not exist or have been applied for but have not been approved); 2. If the dir is configured with a domain name, please check whether the domain name can be correctly resolved; 3. Please check whether the telnet(curl) dir_ip dir_port is successful, that is, whether the network link is OK (in the past, there have been many cases where the network access across IDC and DEV was not available).
-261TXHDB_ERR_INVALID_ARGUMENTSInternal parameter errorN
-273PROXY_ERR_INVALID_PARAMSInternal parameter errorN
-275API_ERR_OVER_MAX_KEY_FIELD_NUMIt indicates that the maximum number of keys has been exceeded. Currently, there are up to 8 keys and 7 list tables. If the API version is older, it is recommended to upgrade to the latest version of 3.46.0Y1. If the number of keys exceeds the limit, it will be blocked when adding a table through the page.
2. Generally, this error occurs in the setkey interface. Please check the number of setkey calls and whether the number of keys exceeds the limit
-279DIR_ERR_SIGN_FAILPassword ErrorNPassword Error, please check if the business password is correct
-517TXHDB_ERR_INVALID_MEMBER_VARIABLE_VALUEInternal parameter errorN
-525SVR_ERR_FAIL_TIMEOUT1. If the api initialization fails, this error will be returned, indicating that the connection to tcapdir or tcaproxy timed out; Please check: (1) If the dir is configured with a domain name, please check that the domain name can be correctly resolved; (2) Please check whether the telnet(curl) dirip dir_port is successful, that is, the network link is OK (in the past, there are many cases where the network access across IDC and DEV is not available); (3) If the proxy connection times out, you can contact DBA or Tcaplus Helper troubleshooting; 2. If a -525 error is returned, it is generally returned in a batch response package. At this time, you can first check whether the error continues to be reported: (1) If it only occurs occasionally, it may be caused by network fluctuations; (2) If it continues to occur, you can contact DBA or Tcaplus_Helper troubleshooting;Y1. It indicates that the gameseverer's connection to tcaproxy timed out. Please check: (1) Whether the Tcaplus API and tcaproxy versions meet the Tcaplus API version number < = tcaproxy version number < = tcapsvr version number; (2) Whether the number of TCP connections of tcaproxy is within the limit; 2. If the tcaproxy returns a -525 error response package, it generally occurs only in batch requests. The reason is that tcapsvr does not return the response packet within the timeout period. In this case: (1) Find the tcaproxy that returns -525 error, and there will be error log. (2) Find the tcapsvr that returns the record timeout and confirm whether there is any problem with the performance of tcapsvr;
-529PROXY_ERR_NO_NEED_ROUTE_BATCHGET(
)_ACTION_MSG_WHEN_NODE_IS_IN_SYNC_STATUS
It indicates that some commands in the lossy relocation are not supported. Currently, most of them are lossless relocations, and this error code will not be reportedNThis error code will be returned if the command words related to "xxxbypartkey" and "delete" are not supported during lossy relocation.
-531API_ERR_OVER_MAX_VALUE_FIELD_NUMIt indicates that the number of value fields exceeds the limit. The limit number of generic tables is 128, and the limit number of List tables is 127.
The 3.46.0 version increased the limit of generic tables to 256 and list tables to 255
YCheck whether the number exceeds the limit according to the version. If it exceeds the limit, you can download the latest version and upgrade it
-773TXHDB_ERR_ALREADY_OPENThe engine file is opened repeatedlyN
-781SVR_ERR_FAIL_SHORT_BUFFIt indicates that the buf is too short, and it is an internal errorN
-785PROXY_ERR_NO_NEED_ROUTE_WHEN(
)_NODE_IS_IN_REJECT_STATUS
It indicates that some commands in the lossy relocation are not supported. Currently, most of them are lossless relocations, and this error code will not be reportedN
-787API_ERR_OVER_MAX_FIELD_NAME_LENIt indicates that the field name size exceeds the limit (32 B)YIf the field name exceeds the limit, it will be blocked when adding a table through the page. You can change the length of the field name
-1037SVR_ERR_FAIL_SYSTEM_BUSYIt indicates that the storage layer is overloaded. You can contact DBA or Tcaplus_Helper troubleshooting. Common causes:

1. The app access is large, and the storage layer is overloaded

2. The storage layer disk performance is abnormal, resulting in overloading

3. The process is stuck, and the ago log is generated
Y1. Confirm whether there is a problem with tcapsvr's performance, such as disk performance or CPU usage;

2. If there is no problem with the performance, confirm whether the main thread is stuck, and search the ago log;

3. Search the worker thread log to see if there is a log with the slow keyword, indicating that processing a request takes more than 200 ms;
-1043API_ERR_OVER_MAX_FIELD_VALUE_LEN1. The field value length exceeds the limit in the table definition, such as the definition of string100B. This error is returned when the value is actually written to 101B
2. The content of a single key field exceeds 1024
Y1. Check whether the field buf exceeds the limit according to the table definition
2. Update the table and check whether the local table meta is updated
3. Check whether the key field content exceeds 1024
-1293SVR_ERR_FAIL_RECORD_EXISTThe record of insert already existsY
-1299API_ERR_FIELD_NOT_EXSISTThe accessed field does not exist. Please confirm that the field name is spelled correctlyY
-1303DTR_ERR_APP_IS_NOT_FOUNTdir can not found appY1.Check if the app id is correct
2.Check if the dir address is correct
-1310TableNotExistTable does not existNPlease check on the business side if the table exists or if the table addition has been completed
-1050TCAPLUS_INDEX_ERR_SEND_TO_INDEX_SERVER_FAILED_FOR_NO_CONNECTORglobal index query failedYCheck if global indexing is configured
-1549SVR_ERR_FAIL_INVALID_FIELD_NAMEThe accessed field does not exist. Please confirm that the table structure has been updated to the back-endY
It indicates that the field being accessed is illegal:

1. Check whether the field name is correct;

2. Confirm that the table structure has been locally updated but has not changed on the Tcaplus system;

3. You can contact the DBA or Tcaplus_Helper to search for the field name in the background log.
-1555API_ERR_FIELD_TYPE_NOT_MATCHIt indicates that the data type of the field value does not match its definition type. For example, the type of a Key field is int8, and when trying to call GetKeyFloat to get the value of this field, it is recommended to check the table definition and confirm the field data type.Y
-1792GEN_ERR_TABLE_READONLYIt indicates that the table is in read-only mode. Please check whether the RCU, WCU, or capacity exceeds the threshold set by the user.YIt may occur more in Tencent cloud mode, mainly because the QPS of the table set by the project team is lower than the actual value.
-1805SVR_ERR_FAIL_VALUE_OVER_MAX_LENThe record exceeds the maximum length, and cannot exceed 10 MB after serializationYFor non-list tables, confirm whether the record exceeds the maximum length set for a single field.
For list tables, confirm the maximum number of elements under a single key defined in the table
-1811API_ERR_PARAMETER_INVALIDIt indicates a parameter error return. It is usually an unreasonable return of parameters set in the interface of an api callY1 Refer to the .h comment of the interface to check whether the parameters are set correctly.
2 Provide the interface and parameters, and contact tcaplus to help locate the problem
-2048GEN_ERR_TABLE_READ_DELETEIt indicates that the capacity exceeds the limit, which can be read and deleted but cannot be writtenYIt may occur more in Tencent cloud mode, mainly because the QPS of the table set by the project team is lower than the actual value.
-2061SVR_ERR_FAIL_INVALID_FIELD_TYPETable field type errorYThe project team should determine whether the table XML used by gameserver and Tcaplus is consistent. The character type is illegal, including:
1. The length of the set field is not equal to the length of the field in the table definition. For example, the length of the field must be 4 for the int type;
2. Unsupported field type;
The project team should first check whether the table xml used by gamesvr and tcaplus is consistent
-2067API_ERR_OPERATION_TYPE_NOT_MATCH1. The table type and command word do not match. For example, the generic table uses the command word of list table

2. The flag bit does not support the command. For example, SetLimit and SetFlag do not match the command
Y1. The table type and command word do not match. Determine whether the list and generic table commands are used incorrectly
2. The flag bit set by request does not support the current command. This error can be ignored
-2304GEN_ERR_ACCESS_DENIEDAccess denied errorNThis is because the actual read and write volume of the table exceeds the specified QPS. Confirm whether the QPS is specified when adding the table. If the problem has not been solved, please contact the administrator.
-2317SVR_ERR_FAIL_SYNC_WRITEtcapsvr_fail_sync_writeN
-2323API_ERR_PACK_MESSAGEPackaging failed while setting dataYConfirm whether the local table meta is consistent with the online table.
You can check the tdr packaging rules, or contact tcaplus to help locate the problem
-2560GEN_ERR_INVALID_ARGUMENTSParameter error, please contact the administratorNIf it is a ServiceAPI error, there will be an error log. The back-end communication module will not pass this error to ServiceAPI. If yes, please contact the administrator
-2573SVR_ERR_FAIL_WRITE_RECORDWrite engine error, please contact the administratorY1. Check whether a single engine file exceeds 256 GB;

2. Whether the disk is abnormal, such as read-only or bad track;

3. Check the specific log for more detailed error information;
-2583DIR_ERR_IS_NOT_THIS_ZONE_APIDir address errorNPlease check whether the dir address configuration and corresponding zone are correct
-2579API_ERR_UNPACK_MESSAGEResponse message unpacking failed when GetDataNTroubleshoot tdr unpacking rules
Whether the local table meta is consistent with the online table
Whether SetKey/SetValue and SetData are mixed
-2816GEN_ERR_UNSUPPORT_OPERATIONUnsupported operation, please contact the administratorYSome functions are not supported for some command words

List tables do not support setting and getting ttl
List tables do not support setting and getting ttl
For conditional query and update, the command words it supports only include (TCAPLUS_API_GET_REQ、TCAPLUS_API_GET_BY_PARTKEY_REQ、TCAPLUS_API_REPLACE_REQ、TCAPLUS_API_UPDATE_REQ、TCAPLUS_API_DELETE_REQ、TCAPLUS_API_PB_FIELD_INC_REQ、TCAPLUS_API_PB_FIELD_GET_REQ、TCAPLUS_API_UPDATE_ITEM_REQ、TCAPLUS_API_LIST_GETALL_REQ、TCAPLUS_API_LIST_DELETE_BATCH_REQ、TCAPLUS_API_LIST_REPLACE_REQ、TCAPLUS_API_LIST_GET_REQ、TCAPLUS_API_LIST_DELETE_REQ)
The command words supported by the PB table only include (tcaplusdb::Head_TypeCmd_DATA_CMD_ADD_REQ、tcaplusdb::Head_TypeCmd_DATA_CMD_GET_REQ、tcaplusdb::Head_TypeCmd_DATA_CMD_DELETE_REQ、tcaplusdb::Head_TypeCmd_DATA_CMD_UPDATE_REQ、tcaplusdb::Head_TypeCmd_DATA_CMD_REPLACE_REQ、tcaplusdb::Head_TypeCmd_DATA_CMD_INDEXGET_REQ、tcaplusdb::Head_TypeCmd_CTRL_CMD_CMP_TABLE_META_REQ、tcaplusdb::Head_TypeCmd_CTRL_CMD_LIST_TABLE_META_REQ)
When the PB protocol API calls SetMessageOption, it is invalid if setting
MESSAGE_OPTION_MESSAGE_INVALID or

MESSAGE_OPTION_MESSAGE_INVALID
-2823ENG_ERR_ENGINE_ERROREngine error, please contact the administratorN
-2829SVR_ERR_FAIL_DELETE_RECORDFailed to delete the engine record. Please contact the administratorNIf the record fails to be deleted, check the disk bad track on the hardware
-3072GEN_ERR_NOT_ENOUGH_MEMORYThe memory is not enoughNIf it is a ServiceAPI error, there will be an error log. Other modules will not pass this error to ServiceAPI. If yes, please contact the administrator
-3079ENG_ERR_DATA_ERRORData error, please contact the administratorN
-3085SVR_ERR_FAIL_DATA_ENGINEThe SetFieldName operation specified wrong fieldYThis error code mainly occurs when reading records and contains a wide range of error types, such as:

(1) when xxxbypartkey, confirm whether the key field is set in SetFieldNames and whether the set value field is legal;

(2) deserialization failure;

(3) insufficient memory;

(4) locking failure;

(5) hash bucket reading failure, etc;

Therefore, log in to the svr machine to view the specific error details;
-3091API_ERR_OVER_MAX_RECORD_NUMApi failed to insert the record into the route, which generally does not occur. If it occurs, please contact tcaplus for troubleshootingN
-3328GEN_ERR_NOT_SATISFY_INSERT_FOR_SORTLISTSortList table storage engine internal error,

please contact Tcaplus_Helper for troubleshooting
NInternal Meta maintenance error
Sorting failed
It does not belong to the situation that the sortlist table element is full and meets the expiration rules of sortlist, but the expiration fails
-3341SVR_ERR_FAIL_RESULT_OVERFLOWThe field value size exceeds the limit of its defined typeYAsk the project team whether it meets the expectations. It belongs to normal app logic. For example, some project teams will set the maximum and minimum values according to the logic
-3347API_ERR_INVALID_COMMANDThe command of the response package does not matchNPossible reasons are as follows:
1. The command word not supported by the current interface is set in the request;
2. Some functions in the request and response object can only be called when a specific command word is used. If it is not used properly, this error will also be reported. For example, the response. GetTableRecordCount function can only be called when the current command word is TCAPLUS_API_GET_TABLE_RECORD_COUNT_RES.
-3603API_ERR_NO_MORE_RECORDWhen FetchRecord, there is no record in the response packageYIt is generally recommended that the project team judge GetResult first, then GetRecordCount, and then, for the loop FetchRecord.
-3859API_ERR_OVER_KEY_FIELD_NUMIt indicates that the maximum number of keys is exceeded. Currently, the maximum number of keys is 8, and for the list table, it is 7Y1. If the number of keys exceeds the limit, it will be blocked when adding a table through the page.
2. Usually, this error occurs on the setkey interface. Check whether the number of setkey calls exceeds the threshold.
-4109SVR_ERR_FAIL_INVALID_INDEXThe subscript of list data type element exceeds the rangeYThe app needs to check whether the idx passed is incorrect. Generally, the idx returned by listgetall is recommended as the idx for the next operation
-4115API_ERR_OVER_VALUE_FIELD_NUMIt indicates that the number of value fields exceeds the limit. The limit number of generic tables is 128, and the limit number of List tables is 127.
The 3.46.0 version increased the limit of generic tables to 256 and list tables to 255
YCheck whether the number exceeds the limit according to the version. If it exceeds the limit, you can download the latest version and upgrade it
-4365SVR_ERR_FAIL_OVER_MAXE_FIELD_NUMIt indicates that the maximum number of fields is exceededYConfirm the number of supported fields according to the Tcaplus API version
-4371API_ERR_OBJ_NEED_INIT1. The API calls the database without initialization.
2. The table to be operated is not registered
Y1. Confirm whether the table has been added
2. After adding the table, whether the API side RegisterTable has been added
3. When the gameserver deletes the table during operation and adds a new table, it needs to re-register the table
-4621SVR_ERR_FAIL_MISS_KEY_FIELDThe request is missing a primary key field or index fieldY
-4627API_ERR_INVALID_DATA_SIZEThe data size is incorrect, which is usually because the user's local table definition is inconsistent with the server. It is recommended to check:
1. Tcaplus background
2. The .h.cpp of the table compiled by the app
3. The tdr file of the table loaded when the app is started
YThe app needs to confirms that whether the data size is incorrect. It is recommended to check whether the local table definition is consistent with the server table definition, and then check whether the request parameters set by the app code exceed the limit
The specific reasons may be as follows:
1. The length of the target table name set in the request exceeds the limit (32);
2. The length of user data set in the request exceeds the limit (1024);
3. The size of the Key field value set in the request exceeds the limit (1024 B);
4. The size of the requested neutral performance test data exceeds the limit (256 B);
5. The size of the field value in the request exceeds the maximum size of the field value defined in the table definition;
6. The sum of the values of all fields specified in the Batch request exceeds the limit (10300000 B).
-4633COMMON_ERR_INVALID_ARRAY_INDEXAn invalid array index, such as when querying a specific field with "array_fields[10]" to retrieve the element at index 10, will result in an error if the array size is less than 11.YCheck if the index is valid, whether it exceeds the size of the array, and if the corresponding field is of array type.
-4883API_ERR_INVALID_ARRAY_COUNTInvalid array sizeYIt means that "refer" in the table definition is greater than the "count", and the app needs to check it
-4889COMMON_ERR_INVALID_FIELD_NAMEInvalid field nameNPlease check if the local table definition and online table definition fields are consistent
-5137PROXY_ERR_PACK_MSGFailed to packageN
-5139API_ERR_INVALID_UNION_SELECTInvalid union selectYIn the Union definition, the data corresponding to select needs to exist. If it does not exist, an error will be reported
-5145COMMON_ERR_INVALID_EXPR_TYPETypically, errors occur during conditional filtering or updates when there is a mismatch in data types, such as when the condition "name > 10" requires the 'name' field to be of a numerical type.YCheck the data type defined in the table, and whether the types of values on both sides of numerical comparisons or assignments match.
-5393PROXY_ERR_SEND_MSGFailed to send the messageYThere are many reasons for this problem. Solve this problem according to the log on tcaproxy
-5395API_ERR_MISS_PRIMARY_KEYMissing primary key in requestYIt is recommended to check the app code to confirm whether all primary key field values are set for the request.
-5649PROXY_ERR_ALLOCATE_MEMORYThe memory is not enoughYIt may be that the memory configured for transaction-type operations (including batch operations such as batchget) has reached the upper limit. Small probability is the other cause of out of memory
-5651API_ERR_UNSUPPORT_FIELD_TYPEField types not supported by PB, such as repeat typeNPlease check the type of pb and restproxy fields
-5905PROXY_ERR_PARSE_MSGFailed to parse the messageNTcaproxy unpacking failed. Please check the problem according to the actual situation
-5907API_ERR_ARRAY_BUFFER_IS_SMALLThe memory is too smallN
-6157SVR_ERR_FAIL_LIST_FULLThe number of list table elements exceeds the defined range. Please set element expirationY
-6161PROXY_ERR_INVALID_MSGInvalid messageNGenerally, the client will not return this error code. If tcaproxy has this log, it may be a security scan
-6412SVR_ERR_FAIL_LOW_VERSIONLow versionN
-6417PROXYERR_FAILED_PROC_REQUEST(
)BECAUSE_NODE_IS_IN_SYNC_STASUS
Some commands are not supported for lossy relocation. Currently, it is mainly lossless relocation, so this problem will not occurY
-6669SVR_ERR_FAIL_HIGH_VERSIONHigh versionYThe version of Tcaplus API is higher than that of tcaproxy
-6673PROXY_ERR_KEY_FIELD_NUM_IS_ZERONo key fieldYThe app needs to check the app code
-6925SVR_ERR_FAIL_INVALID_RESULT_FLAGResult_flag setting error, please refer to the result_flag description in the SDKY
-6929PROXY_ERR_LACK_OF_SOME_KEY_FIELDSMissing key fields in the requestY
-7181SVR_ERR_FAIL_PROXY_STOPPINGThe proxy is stopping, and the app does not need to care about it. API or automatically switch to a new access layerNOnly occurs when tcaproxy exits safely
-7185PROXY_ERR_FAILED_TO_FIND_NODEFailed to find the node. Please contact the administratorNThe routing node cannot be found, or the table may be deleted. Please contact the administrator
-7437SVR_ERR_FAIL_SVR_READONLYThe svr is read-only. It is usually because the disk is full or is in the process of master/slave switchingY(1) If it only occurs very briefly, the project team does not need to care about it; (2) If it continues to appear, contact DBA or Tcaplus_Helper;
-7441PROXY_ERR_INVALID_COMPRESS_TYPEInvalid compression typeNCurrently, the snappy is supported
-7443API_ERR_INCOMPATIBLE_METAIncompatible meta. Please check whether the local table structure and the server table structure are compatible.YConfirm that the version number of the table definition format used by gameserver is less than or equal to the table definition format used by Tcaplus. It is recommended to check whether the client table definition and the server table definition are compatible.

1. Check whether the version number of the table definition used by the client is less than or equal to the server's table definition, and check whether the version number of the table definition used by the client must be less than or equal to the server's table definition;

2. Confirm that the client has changed the table definition of the server to the corresponding or higher version before using the table definition of the higher version.
-7669API_ERR_PACK_ARRAY_DATAFailed to package the array when setting dataYCheck whether the refer setting of the array is correct and whether the count exceeds the limit;
Whether the local table meta is consistent with the online table
-7693SVR_ERR_FAIL_SVR_READONLY(
)_BECAUSE_IN_SLAVE_MODE
The request is sent to the svr slave node, which may be in the process of master/slave switching. If the error code is returned for a long time, please contact the administratorYThis error indicates that the master/slave switch is lossy and needs to be followed up
-7697PROXY_ERR_REQUEST_OVERSPEEDThe request speed exceeds the limitYThis problem occurs frequently in Tencent Cloud mode because the QPS set by the project team is lower than the actual QPS used
-7949SVR_ERR_FAIL_INVALID_VERSIONPlease check the optimistic lock to determine whether the requested record version number is inconsistent with the actual record version numberYMultiple requests are being written, but only one request is set to write successfully, so other requests report errors.
The project team should confirm the requirements:
1. N requests, N successful writes, this does not need optimistic locks.
2. N requests, the first write succeeds, and the rest fail. This requires optimistic locks
-7953PROXY_ERR_SWIFT_TIMEOUTProxy timeoutYIn the batchget scenario, if the tcaproxy -->tcapsrv -->tcaproxy is greater than 1 s, you need to follow up this problem and ask the project team app zone for help
-7955API_ERR_PACK_UNION_DATAFailed the package the union when setting dataNConfirm whether the local table meta is consistent with the online table.
You can check the tdr packaging rules, or contact tcaplus to help locate the problem
-8205SVR_ERR_FAIL_SYSTEM_ERRORSvr internal error, please contact the administratorN
-8209PROXY_ERR_SWIFT_ERRORProxy transaction non-timeout error, please contact the administratorN
-8211API_ERR_PACK_STRUCT_DATAFailed the package the struct when setting dataYConfirm whether the local table meta is consistent with the online table.
You can check the tdr packaging rules, or contact tcaplus to help locate the problem
-8461SVR_ERR_FAIL_OVERLOADThe svr is overloaded, please contact DBA or Tcaplus_HelperNWhen the main thread forwards the request to the worker thread, the forwarding fails because the message queue is full. The common reasons are as follows:

(1) The processing of the worker thread is slow. Confirm whether the worker thread has a slow log;

(2) Whether the disk performance reaches the bottleneck;
-8465PROXY_ERR_DIRECT_RESPONSEThe proxy directly returns packets, which is equivalent to not going through the app logic, and is usually used to test APIsN
-8467API_ERR_UNPACK_ARRAY_DATAFailed to unpack the array when GetDataYCheck the tdr unpacking rules, including whether the refer is correct, whether the count exceeds the limit of the local table
Whether the local table meta is consistent with the online table
Whether the SetKey/SetValue and SetData are mixed
-8717SVR_ERR_FAIL_NOT_ENOUGH_DADADISK_SPACEThe datadisk space is not enoughY
-8721PROXY_ERR_INIT_TLOGFailed to initialize the log moduleN
-8723API_ERR_UNPACK_UNION_DATAFailed to unpack the union when GetDataYCheck the tdr unpacking rules, including whether the selector of union is correct
Whether the local table meta is consistent with the online table
Whether the SetKey/SetValue and SetData are mixed
-8973SVR_ERR_FAIL_NOT_ENOUGH_ULOGDISK_SPACEThe ulogdisk space is not enoughYDelete the invalid files on the disk where the Ulog is located to reduce the disk occupation
-8979API_ERR_UNPACK_STRUCT_DATAFailed to unpack the struct when GetDataYTroubleshoot tdr unpacking rules
Whether the local table meta is consistent with the online table
Whether SetKey/SetValue and SetData are mixed
-9233PROXY_ERR_REQUEST_ACCESS_CTRL_REJECTProxy access denied errorN
-9235API_ERR_INVALID_INDEX_NAMEThe local index does not existYCheck the local index definition. Possible reasons are:

1 The index name passed in when constructing the request is NULL or an empty string;

2. The index name passed in when constructing the request is not defined in the metadata of the table.
-9485SVR_ERR_FAIL_UNSUPPORTED_PROTOCOL_CMDUnsupported command wordN
-9489PROXYERR_NOT_ALL_NODES_ARE_IN(
)NORMAL_OR_WAIT_STATUS
The traversal request returns this error code because the table is in the relocation stateNCurrently using lossless relocation mode, this error code is rarely encountered
-9491API_ERR_MISS_PARTKEY_FIELDMissing partkey fieldNThe index field is missing in the request (such as get by part key request, delete by part key request, etc.). It is recommended to check the app code to confirm whether the index field values of all target local indexes are set for the request. The project team needs to check the code
-9745PROXY_ERR_ALREADY_CACHED_REQUEST_TIMEOUTThe cache request timed out when changing the routeYIf this problem is encountered, it indicates that it is lossy and needs to be followed up continuously
-9747API_ERR_ALLOCATE_MEMORYFailed to allocate the memoryNIt is recommended to check the memory usage of the client to ensure that there is enough memory for the SDK.
-9997SVR_ERR_FAIL_MERGE_VALUE_FIELDFailed to merge the value field. It is an internal error, please contact the administratorNSecond-level fields and fields above will have compatibility problems. At present, this feature is not enabled
-10001PROXY_ERR_FAILED_TO_CACHE_REQUESTThe cache request failed when changing the routeNThe request cache fails, usually because the cache is full
-10253SVR_ERR_FAIL_CUT_VALUE_FIELDFailed to merge the value field. It is an internal error, please contact the administratorN
-10257PROXY_ERR_NOT_EXIST_CACHED_REQUESTThe cache request does not exist when changing the routeNThe request has not been cached in the cache
-10259API_ERR_MISS_BINARY_VERSIONInternal error, the version is missing in the binary fieldNFor SetData/GetData, the binary field must have the version number 2B in front of it
-10509SVR_ERR_FAIL_PACK_FIELDInternal error, field packaging failed, please contact administratorN
-10513PROXY_ERR_FAILED_NOT_ENOUGH_CACHE_BUFFThe cache buff is not enough when changing the routeNIt is due to insufficient memory
-10765SVR_ERR_FAIL_UNPACK_FIELDSvr unpacking failedN
-10769PROXY_ERR_FAILED_PROCESS_CACHED_REQUESTThe proxy failed to process the cache requestNThe request is already cached, and another request will report this error
-10771API_ERR_INVALID_RESULT_FLAGInvalid result flagY
-11021SVR_ERR_FAIL_LOW_API_VERSIONThe api version is too low, please upgrade the apiN
-11027API_ERR_OVER_MAX_LIST_INDEX_NUMThe number of records for batch operation exceeds the limit. A maximum of 1024 records are supportedNReduce the number of records for batch operations
-11277SVR_ERR_COMMAND_AND_TABLE_TYPE_IS_MISMATCHThe method for operating the table does not existYThe request command word does not match the table type. For example, the ListReplace request applies only to the list table, but is used to operate the generic table;
-11283API_ERR_INVALID_OBJ_STATUENot initialized, usually in a traversal requestNThe project team needs to check the code. At present, the main problem is the status error of the traverser, such as the traverser is not initialized. When calling the interface of the traverser, it will check whether the current status of the traverser is correct. For example, when calling the Start function, the current traverser is required to be in the READY status.
-11533SVR_ERR_FAIL_TO_FIND_CACHENo data shard in the svr, internal error, please contact the administratorNThe data shards do not exist. Check the specific log, such as whether the data shards accessed in the request have been deleted
-11537PROXY_ERR_SWIFT_SEND_BUFFER_FULLthe send buffer is full and the API processing response is too slowYFollow up on the situation of the package receiving code of the gameserver calling the Tcaplus API
-11539API_ERR_INVALID_REQUESTInvalid requestNPossible reasons are as follows:

1. Illegal requests, such as Get requests that do not specify the Key of the record. It is recommended to check whether the request is legal by referring to the user documentation;

2. The request called by the Restful interface lacks the necessary Header. There is a detailed prompt in ErrMsg. It is recommended to check whether the Restful request is legal;

3. For scenarios such as transaction failure created by proxy for batch operation, contact the DBA to confirm the reason of the problem.
-11789SVR_ERR_FAIL_TO_FIND_METAThe svr failed to find the table definition, internal error, please contact the administratorYThe table metadata does not exist. Check the specific log, such as whether the table accessed in the request has been deleted
-11793PROXY_ERR_REQUEST_OVERLOAD_CTRL_REJECTThe proxy is overloadedNThe number of requests exceeds the processing capacity of proxy
-12045SVR_ERR_FAIL_TO_GET_CURSORThe svr failed to obtain the traversal cursor, which may be caused by too many traversal requests at the same time, which are rarely encounteredN
-12049PROXY_ERR_SQL_QUERY_MGR_IS_NULLSQL query manager creation failedNIt is generally caused by insufficient memory or unsuccessful ES service connection
-12051API_ERR_TABLE_NAME_MISSINGThe restproxy request is not set the table nameNCheck the restproxy request parameters
-12301SVR_ERR_FAIL_OUT_OF_USER_DEF_RANGEThe value is outside the user-defined rangeNWhen the project team increases or decreases the value of a field (integer or floating point), such as the increase operation, the increased or decreased value exceeds or is lower than the user-defined range; For example, the access of user-defined field A is [10, 20], and the current value of field A is 15. If the request requests to increase this field's value by 6, the increased value will exceed 20, and this error will be returned; Or if the request requests to decrease this field's value by 6, the decreased value will be less than 10, and this error will be returned;
-12305PROXY_ERR_SQL_QUERY_INVALID_SQL_TYPEInvalid sql requestNSQL is illegal, or the type of SQL query is not supported by the back-end
-12307API_ERR_SOCKET_SEND_BUFF_IS_FULLThe api send buffer is fullY1. Users send data packages too fast, and the number of packets is too large;
2. Check whether the network has reached the bottleneck, and the package sending is too slow;
3. Check that the number of back-end proxies is too small and packet receiving is too slow to reach the bottleneck
-12557SVR_ERR_INVALID_ARGUMENTSInternal parameter errorN
-12561PROXY_ERR_GET_TRANSACTION_FAILEDTransaction allocation failed. Please contact the administrator to increase the configuration of transaction concurrencyNIt is usually caused by the release of the transaction timeout, but the back-end message cannot find the corresponding transaction
-12563API_ERR_INVALID_MAGICThe magic is incorrect, usually because of communication problems. If this problem occurs continuously, contact the administratorNThe protocol's magic is incorrect, and the code should be followed. 
-12817PROXY_ERR_ADD_TRANSACTION_FAILEDTransaction allocation failed. Please contact the administrator to increase the configuration of transaction concurrencyNThe transaction is pre-allocated. In swift, if the usage exceeds the configured value, this error will be reported
-12819API_ERR_TABLE_IS_NOT_EXISTThe table to be operated does not existYGenerally, this error occurs when registering the table. Check whether the table on the page has been added successfully. It may be in the approval status. Please contact dba for approval
-13073PROXY_ERR_QUERY_FROM_INDEX_SERVER_FAILEDGlobal index querying failedNGlobal index is not configured. Please use it after configuration
-13075API_ERR_SHORT_BUFFThe restapi limits the request response body to 10 M; At present, http requests limit the size of the entire package to 10 MNPlease check the restproxy request size
-13329PROXY_ERR_QUERY_FROM_INDEX_SERVER_TIMEOUTQuery global index timeoutNThe tcaplus service back-end does not return a response within a specified period of time. The error may be caused by service overload, network failure, or service disabled
-13331API_ERR_FLOW_CONTROLapi_flow_controlN
-13585PROXY_ERR_QUERY_FOR_CONVERT_TCAPLUS(
)_REQ_TO_INDEX_SERVER_REQ_FAILED
Failed to parse sql statement of global indexNIn general, the SQL statement on the user request side is invalid, resulting in parsing failure at the back end
-13587API_ERR_COMPRESS_SWITCH_NOT_SUPPORTED(
)_REGARDING_THIS_CMD
The protocol compression SetCompressSwitch called for a command that does not support protocol compressionNThe currently supported command words for setting protocol compression are: TCAPLUS_CMD_GET_REQ, TCAPLUS_CMD_BATCH_GET_REQ, TCAPLUS_CMD_GET_DURING_MOVE_REQ
-13837SVR_ERR_INVALID_SELECT_ID_FOR_UNIONInternal error, please contact the administratorN
-13841PROXY_ERR_QUERY_INDEX_FIELD_NOT_EXISTIndex field does not existNThe field specified in the query statement in SQL is not found in the table definition of tcaplus. Confirm whether the fields of the client are defined in tcaplus
-13843API_ERR_FAILED_TO_FIND_ROUTEThe background network is abnormal, and the request cannot be sent successfully. If this error persists, please contact the administratorYThe route cannot be found, gameserver cannot find an available tcaproxy and it needs to follow up on the log.
-14093SVR_ERR_CAN_NOT_FIND_SELECT_ENTRY_FOR_UNIONInternal error, please contact the administratorN
-14097PROXY_ERR_THIS_SQL_IS_NOT_SUPPORTUnsupported SQLNThe proxy does not support the current SQL type
-14099API_ERR_OVER_MAX_PKG_SIZEThe single record to be operated exceeds 10 M after packagingYThere is a limit to the size of the record, so it is necessary to reduce the size of the record; Confirm the size limit of a single record according to the version. 10 M is supported after version 3.40.0, and 1 M is supported in the previous versions
-14353PROXY_ERR_NO_SUCH_APPIDProxy authentication failed. The service authentication information was not foundN
-14609PROXY_ERR_NO_APP_USER_PASSWDThe proxy cannot find the user authentication informationN
-14865PROXY_ERR_NO_APP_USER_PASSWD_RECORDThe proxy cannot find the user authentication informationN
-15117SVR_ERR_INVALID_ARRAY_COUNTInvalid array sizeYCheck TDR rules
-15121PROXY_ERR_NO_APP_USER_OPTThe proxy cannot find the user authentication informationN
-15123API_ERR_ADD_RECORDfailed to add a new record into requestN
-15373SVR_ERR_REJECT_REQUEST_BECAUSE_ROUTE(
)_IN_REJECT_STATUS
Reject the request. It may be caused by the routing error when the svr is in the relocation state.N
-15377PROXY_ERR_NO_APP_USER_OPT_RECORDThe proxy cannot find the user authentication informationNThe tcaplus proxy does not cache user password information of the specified app, which often occurs in internal system logic errors
-15379API_ERR_ZONE_IS_NOT_EXISTThe zone id to be operated does not existNCheck whether the zone exists in the app on the page
Whether the environment of tcaplus is connected correctly
-15635API_ERR_TRAVERSER_IS_NOT_EXISTWhen the packet is received, the traverser has been destroyed or stopped. This error is generally not returned to the user and can be ignoredN
-15885SVR_ERR_FAIL_INVALID_FIELD_VALUEInvalid field valueN
-16141SVR_ERR_FAIL_PROTOBUF_FIELD_GETThe PB table's GetRecord operation failed. Please contact the administratorY
-16147API_ERR_INSTANCE_INIT_LOG_FAILUREFailed to initialize the log moduleN
-16389TXHDB_ERR_INVALID_VALUE_DATABLOCK_NUMThe number of proxy value datablocks is abnormal. Please contact the administratorN
-16403API_ERR_CONNECTOR_IS_ABNORMALThe connection is abnormalN
-16653SVR_ERR_FAIL_PROTOBUF_FIELD_UPDATEPB table's FieldSetRecord operation failed, please contact the administratorYCheck whether the operation field already exists on the server
-16659API_ERR_WAIT_RSP_TIMEOUTUsed by sqldriver, waiting for response timeoutNIt rarely occurs. Please contact tcaplus for troubleshooting
-16901TXHDB_ERR_COMPRESSION_FAILCompression failedN
-16909SVR_ERR_FAIL_PROTOBUF_FIELD_INCREASEPB table's FieldIncRecord operation failed, please contact the administratorY
-16915API_ERR_CONVERT_DIR_DOMAINThe api failed to convert the dir domainYPing the dir domain and try to convert it. Possible reasons include: 1. The domain name is incorrect or does not exist. 2. The DNS configuration of the client is incorrect. 3. Confirm whether the dir address is filled correctly, such as missing “tcp://xxx:9999”
-17157TXHDB_ERR_DECOMPRESSION_FAILFailed to decompressN
-17165SVR_ERR_FAIL_PROTOBUF_FIELD_TAG_MISMATCHThe PB table tag does not matchYThe project team confirms whether the definition of the gameserver-side table is consistent with that of the Tcaplus table
-17171API_ERR_NET_THREAD_START_TIMEOUTThe api failed to wait for the network thread to startN1. Generally, the CPU is stuck, resulting in a slow sub-thread startup;

2. The network thread failed to copy the log handle of the main thread, resulting in a startup failure; This is usually caused by the clone failure of tlog; If it is Fin before Init, it is recommended to destroy the log handle after Fini and regenerate it
-17427API_ERR_DIR_CONNECT_FAILEDDir conncetion failedYCheck network problems and try to telnet the dir
-17683API_ERR_DIR_SIGNUP_FAILEDDir authentication failedYCheck the password
-17938API_ERR_DIR_GET_PROXYLIST_TIMEOUTGet a proxy list from the directory timeout NCheck the dir module to find the reason for the slow list return
-18195API_ERR_PROXY_CONNECT_FAILEDThe connection from API to proxy failedY1. Confirm whether it is a network limitation, whether the strategy from dev to idc is enabled, and whether the proxy is enabled again after relocation;
2. Telnet the network port of the proxy to see whether it can be connected;
3. Curl the network port of the proxy to see whether there are any permission errors;
4. Since the number of proxy connections is limited to 3000, contact tcaplus to check whether there are too many clients
-18451API_ERR_COMPARE_TABLE_META_FAILEDMeta comparison between the api and svr failedYCheck whether the local and oms tables are consistent
-18701SVR_ERR_FAIL_PARTKEY_INSERT_NOT_SUPPORTInsertByPartkey is not supportedN
-18957SVR_ERR_FAIL_SQL_FILTER_FAILEDFailed to execute sql filtering in the distributed indexN
-33541TXHDB_ERR_ADD_LSIZE_EXCEEDS(
)_MAX_TSD_VALUE_BUFF_SIZE
Internal error, please contact the administratorN
-34053TXHDB_ERR_TOO_BIG_KEY_BIZ_SIZEThe key exceeds the maximum limit of 1 KBN
-34309TXHDB_ERR_TOO_BIG_VALUE_BIZ_SIZEThe value exceeds the maximum limit of 10 MBN
-34565TXHDB_ERR_INDEX_NO_EXISTThe index does not existN
-39685TXHDB_ERR_FILE_EXCEEDS_LSIZE_LIMITA single data shard exceeds the maximum limit of 256 GB, resulting in write failureYWhen this problem occurs, expand the capacity
-3089PROXY_ERR_ROUTE_MSGThe proxy cannot find the routeY1.Check whether the table is added. If yes, please contact Tcaplus
2.On the business side, when getting the key and value, if the key buffer is empty, the key cannot be found, resulting in a routing error.
If it is not the above situation, please contact Tcaplus to check if the proxy is online and to review the relevant logs.
-1280GEN_ERR_ECMGR_DUPLICATED_ERROR_CODEError code table initialization failed. Duplicate error codes are definedNThe TcapErrCodeInit function is not safe to be called in multiple threads, which may cause failure. Put TcapErrCodeInit into the main thread for initialization, or add a synchronization lock
-1297TCAPROXY_ERROR_SYSTEM_ERRORPROXY ErrorNIt is possible that the transaction or action resources of the proxy have been exhausted (please contact tcaplus helper to confirm through the proxy log), and further confirmation can be made through the proxy log
269SVR_ERR_FULL_SORTLIST_CANT_INSERTThe newly inserted data in the sortlist table exceeds the maximum number of list elements, resulting in insertion failureNThe newly inserted data in the sortlist table exceeds the maximum number of list elements, and even if inserted, it will be immediately eliminated. The insertion fails and this error code is returned