1# Webview Error Codes 2 3> **NOTE** 4> 5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md). 6 7## 17100001 WebviewController Not Associated with a Web Component 8 9**Error Message** 10 11Init error. The WebviewController must be associated with a Web compoent. 12 13**Description** 14 15This error code is reported when the **WebviewController** object is not associated with any **\<Web>** component. 16 17**Solution** 18 19Bind the **WebviewController** object to a **\<Web>** component. 20 21 22## 17100002 Invalid URL 23 24**Error Message** 25 26Invalid url. 27 28**Description** 29 30This error code is reported when the URL format is incorrect. 31 32**Solution** 33 34Verify the URL format. 35 36 37## 17100003 Incorrect Resource Path 38 39**Error Message** 40 41Invalid resource path or file type. 42 43**Description** 44 45This error code is reported when the path to the resource file is incorrect. 46 47**Possible Causes** 48 49The resource file does not exist or cannot be accessed. 50 51**Solution** 52 53Make sure the path to the resource file is correct. 54 55 56## 17100004 Function Not Enabled 57 58**Error Message** 59 60Function not enable. 61 62**Description** 63 64This error code is reported when the related function is not enabled. 65 66**Solution** 67 68Make sure the related function is enabled. 69 70 71## 17100005 Invalid Cookie Value 72 73**Error Message** 74 75Invalid cookie value. 76 77**Description** 78 79This error code is reported when the cookie value type is invalid. 80 81**Possible Causes** 82 83The cookie value type is not supported. 84 85**Solution** 86 87Verify the cookie value type. 88 89 90## 17100006 Message Port Callback Cannot Be Registered 91 92**Error Message** 93 94Can not register message event using this port. 95 96**Description** 97 98This error code is reported when a callback fails to be registered for the message port. 99 100**Possible Causes** 101 102The port is closed. 103 104**Solution** 105 106Make sure the port is open. 107 108 109## 17100007 Invalid Forward or Backward Operation 110 111**Error Message** 112 113Invalid back or forward operation. 114 115**Description** 116 117This error code is reported when the specified forward or backward cannot be performed. 118 119**Possible Causes** 120 1211. The browsing history is cleared. 122 1232. There is no browsing operation corresponding to the forward or backward operation. 124 125**Solution** 126 1271. Check whether **clearHistory** has been performed. 128 1292. Check whether the number of pages specified by the forward or backward operation is available. 130 131 132## 17100008 javaScriptProxy Does Not Exist 133 134**Error Message** 135 136Cannot delete JavaScriptProxy. 137 138**Description** 139 140This error code is reported when the **javaScriptProxy** object to delete does not exist. 141 142**Possible Causes** 143 144The target **javaScriptProxy** object is not yet registered. 145 146**Solution** 147 148Make sure the **javaScriptProxy** object is registered. 149 150 151## 17100009 Zoom Operation Failure 152 153**Error Message** 154 155Cannot zoom in or zoom out. 156 157**Description** 158 159This error code is reported when the page cannot be zoomed in or out. 160 161**Possible Causes** 162 163The zoom ratio has reached its maximum or minimum. 164 165**Solution** 166 167Check whether the zoom ratio has reached its maximum or minimum. 168 169 170## 17100010 Failure to Send Messages Through a Port 171 172**Error Message** 173 174Cannot post message using this port. 175 176**Description** 177 178This error code is reported when the current port cannot be used to send messages. 179 180**Possible Causes** 181 182The local or remote port is closed. 183 184**Solution** 185 1861. Make sure the local port is open. 187 1882. Make sure an **onMessageEvent** callback is registered for the remote port. 189 190 191## 17100011 Invalid Origin 192 193**Error Message** 194 195Invalid origin. 196 197**Description** 198 199This error code is reported when the input parameter **origin** is invalid. 200 201**Possible Causes** 202 2031. The **origin** parameter is empty. 204 2052. The **origin** value is invalid. 206 207**Solution** 208 209Make sure the **origin** value is valid. 210 211 212## 17100012 No Web Storage Origin 213 214**Error Message** 215 216Invalid web storage origin. 217 218**Description** 219 220This error code is reported when no web storage origin is available. 221 222**Possible Causes** 223 224The related JS database API is not used. 225 226**Solution** 227 2281. Check whether the JS database API is used. 229 2302. If the JS database API is used, find out the failure cause, for example, check whether **databaseAccess** is enabled. 231 232 233## 17100013 Invalid Number of Sockets During Preconnection 234 235**Error Message** 236 237The number of preconnect sockets is invalid. 238 239**Description** 240 241This error code is reported when the number of sockets to be preconnected is invalid. 242 243**Possible Causes** 244 245The number of sockets is less than or equal to 0 or greater than 6. 246 247**Solution** 248 249Make sure the specified number of sockets is greater than 0 and less than or equal to 6. 250 251 252## 17100014 Type and Value Mismatch 253 254**Error Message** 255 256The type does not match with the value of the message. 257 258**Description** 259 260This error code is reported when the type and value of the message do not match. 261 262**Possible Causes** 263 264The value of the obtained message does not match the type of the message. 265 266**Solution** 267 268Call the API based on the message type to obtain the message value. For example, if the type is **BOOLEAN**, call the **GetBoolean** API to obtain the Boolean value. 269 270 271## 17100015 Memory Allocation Failure 272 273**Error Message** 274 275New failed, out of memeory. 276 277**Description** 278 279This error code is reported when memory allocation failed due to insufficient memory. 280 281**Possible Causes** 282 283The data to send is too large. 284 285**Solution** 286 287Check the length of the data to be sent. 288