# Error messages

## Enumeration Members

### NotInitialized

• **NotInitialized** = `"not_initialized"`

Either the SDK init was not called, or the call failed

### Unknown

• **Unknown** = `"unknown"`

When the SDK operation fails on an unhandled error

## triggerActionEvent() errors

### Server errors

**Format**: `server_error_<actionType>_<timestamp>`

div
| Error | Description and example |
|  --- | --- |
| **500 - Internal Server Error** | **Description**: Indicates a general server-side failure. This error occurs when the server encounters an unexpected condition preventing it from fulfilling the request.  **Example**: `server_error_login_500_Something went wrong_1732723499326` |
| **502 - Bad Gateway** | **Description**: The server received an invalid response from an upstream server while trying to process the request.  **Example**: `server_error_login_502_Bad Gateway_1732723499326` |
| **503 - Service Unavailable** | **Description**: The server is currently unable to handle the request due to temporary overload or maintenance.  **Example**: `server_error_login_503_Server Unavailable_1732723499326` |
| **400 - Bad Request** | **Description**: The request sent by the client is invalid. Specific causes include: - **Invalid request body**: The server could not process the request due to malformed syntax.    **Example**: `server_error_login_400_Invalid request_1732722021998` - **Decryption error**: The server failed to decrypt the request payload.    **Example**: `server_error_login_400_Decryption failed_1732972138346` -**Decompression error**: The server failed to decompress the request payload.    **Example**: `server_error_login_400_Decompression failed_1732972138346` -**Unsupported action type**: The request specified an action type not supported by the server.    **Example**: `server_error_dummyType_400_Unsupported action type_1732721929594` |
| **401 - Unauthorized** | **Description**: Authentication failed due to missing or invalid credentials.  **Client ID not supported**: The provided client ID is not recognized.  **Example**: `server_error_login_401_Client ID is not supported - "zsKFyTytYtZL3hcvQQ7"_1732722263186` |
| **409 - Conflict** | **Description**: The request could not be processed due to a conflict with the current state of the resource.  **Event already sent**: Indicates a duplicate request for an event already processed.  **Example**: `server_error_login_409_Request cannot be processed_1732971102156` |
| **429 - Too Many Requests** | **Description**: The client has sent too many requests in a given amount of time and is being rate-limited.  **Rate limit exceeded**: Indicates throttling due to excessive requests.  **Example**: `server_error_login_429_ThrottlerException: Too Many Requests_1732721457134` |


### Client errors

**Format**: `client_error_<actionType>_<timestamp>`

div
| Error | Description and example |
|  --- | --- |
| **'fetch' does not exist on window** | **Description**: The JavaScript `fetch` API is not supported in the current environment.  **Example**: `client_error_login_fetch-api is not supported_1732723943772` |
| **Encryption error (client-side)** | **Description**: The client failed to encrypt the request data.  **Example**: `client_error_login_crypto is not supported_1732723943772` |
| **Invalid action type** | **Description**: The client attempted to perform an unsupported or invalid action type.  **Example**: `client_error_invalidtype_invalid_action_type_1732723943772` |


### SDK Disabled errors

**Format**: `disabled_sdk_<disabledReason>_<context>_<timestamp>`

div
| Disabled reason | Description and example |
|  --- | --- |
| `init_not_called` | **Description**: The `init` function wasn't called.  **Example**: `disabled_sdk_init_not_called_action_1754292026552` |
| `init_failed` | **Description**: SDK initialization failed.  **Example**: `disabled_sdk_init_failed_action_1754292839934` |
| `config_disabled` | **Description**: The SDK was disabled via configuration.  **Example**: `disabled_sdk_config_disabled_action_1754293046441` |
| `invalid_params` | **Description**: The SDK was initialized with invalid parameters.  **Example**: `disabled_sdk_invalid_params_action_1754293254357` |
| `missing_config` | **Description**: The SDK did not receive the configuration, possibly due to blocked requests.  **Example**: `disabled_sdk_missing_config_action_1754293254357` |


### Communication errors

**Format**: `communication_error_<actionType>_<timestamp>`

div
| Error | Description and example |
|  --- | --- |
| **Encryption error - missing public key** | **Description**: The encryption process failed because the required public key is missing.  **Example**: `communication_error_login_Encryption error - missing public key_1732799565912` |
| **Network/Wi-Fi error (to be verified)** | **Description**: A network error occurred, possibly due to connectivity issues or timeouts.  **Example**: `communication_error_login_Failed to fetch_1732799565912` |


### Unexpected errors

**Format**: `unexpected_error_<actionType>_<timestamp>`

div
| Error | Description and example |
|  --- | --- |
| **Unexpected error** | **Description**: An error occurred that does not fall into any predefined category.  **Example**: `unexpected_error_login_1732799565912` |