errorcode-hiappevent.md 8.0 KB
Newer Older
S
shawn_he 已提交
1
# Application Event Logging Error Codes
S
shawn_he 已提交
2

3 4 5 6
> **NOTE**
>
> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).

S
shawn_he 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
## 11100001 Application Event Logging Disabled

**Error Message**

Function is disabled.

**Description**

This error code is reported if the **write** API is called to perform application event logging but the system ignores related events because the logging function is disabled.

**Possible Causes**

The application event logging function is disabled.

**Solution**
S
shawn_he 已提交
22

S
shawn_he 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
Invoke the **configure** API to enable the application event logging function.

   ```js
   hiAppEvent.configure({
       disable: false
   });
   ```

## 11101001 Invalid Event Domain Name
**Error Message**

Invalid event domain.

**Description**

This error code is reported if the **write** API is called to perform application event logging but the system ignores related events because the input event domain name is invalid.

**Possible Causes**

The specified event domain name does not comply with the following rules:

- The event domain name contains only digits, lowercase letters, and underscores (\_).
- The event domain name starts with a lowercase letter and does not end with an underscore (\_).
S
shawn_he 已提交
46
- The event domain name is not empty and contains a maximum of 16 characters.
S
shawn_he 已提交
47 48

**Solution**
S
shawn_he 已提交
49

S
shawn_he 已提交
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
Specify a valid event domain name.

## 11101002 Invalid Event Name

**Error Message**

Invalid event name.

**Description**

This error code is reported if the **write** API is called to perform application event logging but the system ignores related events because the input event name is invalid.

**Possible Causes**

The specified event name does not comply with the following rules:

S
shawn_he 已提交
66 67
- An event name contains only digits, letters, and underscores (_).
- An event name starts with a letter or dollar sign ($) and does not end with an underscore (_).
S
shawn_he 已提交
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
- The event name is not empty and contains a maximum of 48 characters.

**Solution**

Specify a valid event name.

## 11101003 Invalid Number of Event Parameters

**Error Message**

Invalid number of event parameters.

**Description**

This error code is reported if the **write** API is called to perform application event logging but the system discards extra event parameters because the number of input event parameters exceeds the limit.

**Possible Causes**

The number of input event parameters exceeds 32.

**Solution**

Specify a valid number of event parameters.

## 11101004 Invalid Event Parameter String Length

**Error Message**

Invalid string length of the event parameter.

**Description**

This error code is reported if the **write** API is called to perform application event logging but the system ignores related event parameters because the value of the input event parameter is excessively long.

**Possible Causes**

The length of the input event parameter value exceeds 8 x 1024 characters.

**Solution**

Specify an event parameter value with a valid length.

## 11101005 Invalid Event Parameter Name

**Error Message**

Invalid event parameter name.

**Description**

This error code is reported if the **write** API is called to perform application event logging but the system ignores related event parameters because the input event parameter name is invalid.

**Possible Causes**

S
shawn_he 已提交
122
The specified event name does not comply with the following rules:
S
shawn_he 已提交
123

S
shawn_he 已提交
124 125 126
- An event name contains only digits, letters, and underscores (_).
- An event name starts with a letter or dollar sign ($) and does not end with an underscore (_).
- An event parameter name is not empty and contains a maximum of 16 characters.
S
shawn_he 已提交
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165

**Solution**

Specify a valid event parameter name.

## 11101006 Invalid Array Length of Event Parameter Values

**Error Message**

Invalid array length of the event parameter.

**Description**

This error code is reported if the **write** API is called to perform application event logging but the system discards extra array elements because the array of the event parameter value is excessively long.

**Possible Causes**

The array length of the event parameter value exceeds 100.

**Solution**

Specify a valid array length for the event parameter value.

## 11102001 Invalid Watcher Name

**Error Message**

Invalid watcher name.

**Description**

This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because the specified watcher name is invalid.

**Possible Causes**

The specified watcher name does not comply with the following rules:

- The watcher name can contain only digits, lowercase letters, and underscores (\_).
- The watcher name starts with a lowercase letter and does not end with an underscore (\_).
S
shawn_he 已提交
166
- A watcher name is not empty and contains a maximum of 32 characters.
S
shawn_he 已提交
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285

**Solution**

Specify a valid watcher name.

## 11102002 Invalid Filtering Event Domain Name

**Error Message**

Invalid filtering event domain.

**Description**

This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because the specified filtering event domain name is invalid.

**Possible Causes**

The specified filtering event domain name does not comply with the following rules:

- The event domain name contains only digits, lowercase letters, and underscores (\_).
- The event domain name starts with a lowercase letter and does not end with an underscore (\_).
- The event domain name is not empty and contains a maximum of 32 characters.

**Solution**

Specify a valid filtering event domain name.

## 11102003 Invalid Event Number

**Error Message**

Invalid row value.

**Description**

This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because an invalid event number is passed in the callback trigger condition.

**Possible Causes**

The event number passed in the input callback triggering condition is a negative number.

**Solution**

Specify a valid event number.

## 11102004 Invalid Event Size

**Error Message**

Invalid size value.

**Description**

This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because an invalid event size is passed in the callback trigger condition.

**Possible Causes**

The event size passed in the input callback triggering condition is a negative number.

**Solution**

Specify a valid event size.

## 11102005 Invalid Timeout Value

**Error Message**

Invalid timeout value.

**Description**

This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because an invalid timeout value is passed in the callback trigger condition.

**Possible Causes**

The timeout value passed in the input callback triggering condition is a negative number.

**Solution**

Specify a valid timeout value.

## 11103001 Invalid Maximum Storage Quota

**Error Message**

Invalid max storage quota value.

**Description**

This error code is reported if the **configure** API is called to subscribe to application events but the system ignores the setting because the specified maximum storage quota is invalid.

**Possible Causes**

The maximum storage quota does not meet the following rules:

- The quota value consists of only digits and a unit (including b|k|kb|m|mb|g|gb|t|tb, which are case-insensitive).
- The quota value must start with a digit. You can determine whether to pass the unit. If the unit is left empty, **b** (that is, byte) is used by default.

**Solution**

Specify a valid maximum storage quota.

## 11104001 Invalid Event Package Size

**Error Message**

Invalid size value.

**Description**

This error code is reported if the **setSize** API is called to set the threshold of the event package size but the system ignores the setting because the specified event package size is invalid.

**Possible Causes**

The specified event package size is a negative number.

**Solution**

Specify a valid event package size.