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 8## 17100001 WebviewController Not Associated with a Web Component 9 10**Error Message** 11 12Init error. The WebviewController must be associated with a Web compoent. 13 14**Description** 15 16This error code is reported when the **WebviewController** object is not associated with any **\<Web>** component. 17 18**Solution** 19 20Bind the **WebviewController** object to a **\<Web>** component. 21 22 23## 17100002 Invalid URL 24 25**Error Message** 26 27Invalid url. 28 29**Description** 30 31This error code is reported when the URL format is incorrect. 32 33**Solution** 34 35Verify the URL format. 36 37 38## 17100003 Incorrect Resource Path 39 40**Error Message** 41 42Invalid resource path or file type. 43 44**Description** 45 46This error code is reported when the path to the resource file is incorrect. 47 48**Possible Causes** 49 50The resource file does not exist or cannot be accessed. 51 52**Solution** 53 54Make sure the path to the resource file is correct. 55 56 57## 17100004 Function Not Enabled 58 59**Error Message** 60 61Function not enable. 62 63**Description** 64 65This error code is reported when the related function is not enabled. 66 67**Solution** 68 69Make sure the related function is enabled. 70 71 72## 17100005 Invalid Cookie Value 73 74**Error Message** 75 76Invalid cookie value. 77 78**Description** 79 80This error code is reported when the cookie value type is invalid. 81 82**Possible Causes** 83 84The cookie value type is not supported. 85 86**Solution** 87 88Verify the cookie value type. 89 90 91## 17100006 Message Port Callback Cannot Be Registered 92 93**Error Message** 94 95Can not register message event using this port. 96 97**Description** 98 99This error code is reported when a callback fails to be registered for the message port. 100 101**Possible Causes** 102 103The port is closed. 104 105**Solution** 106 107Make sure the port is open. 108 109 110## 17100007 Invalid Forward or Backward Operation 111 112**Error Message** 113 114Invalid back or forward operation. 115 116**Description** 117 118This error code is reported when the specified forward or backward cannot be performed. 119 120**Possible Causes** 121 1221. The browsing history is cleared. 123 1242. There is no browsing operation corresponding to the forward or backward operation. 125 126**Solution** 127 1281. Check whether **clearHistory** has been performed. 129 1302. Check whether the number of pages specified by the forward or backward operation is available. 131 132 133## 17100008 javaScriptProxy Does Not Exist 134 135**Error Message** 136 137Cannot delete JavaScriptProxy. 138 139**Description** 140 141This error code is reported when the **javaScriptProxy** object to delete does not exist. 142 143**Possible Causes** 144 145The target **javaScriptProxy** object is not yet registered. 146 147**Solution** 148 149Make sure the **javaScriptProxy** object is registered. 150 151 152## 17100009 Zoom Operation Failure 153 154**Error Message** 155 156Cannot zoom in or zoom out. 157 158**Description** 159 160This error code is reported when the page cannot be zoomed in or out. 161 162**Possible Causes** 163 164The zoom ratio has reached its maximum or minimum. 165 166**Solution** 167 168Check whether the zoom ratio has reached its maximum or minimum. 169 170 171## 17100010 Failure to Send Messages Through a Port 172 173**Error Message** 174 175Cannot post message using this port. 176 177**Description** 178 179This error code is reported when the current port cannot be used to send messages. 180 181**Possible Causes** 182 183The local or remote port is closed. 184 185**Solution** 186 1871. Make sure the local port is open. 188 1892. Make sure an **onMessageEvent** callback is registered for the remote port. 190 191 192## 17100011 Invalid Origin 193 194**Error Message** 195 196Invalid origin. 197 198**Description** 199 200This error code is reported when the input parameter **origin** is invalid. 201 202**Possible Causes** 203 2041. The **origin** parameter is empty. 205 2062. The **origin** value is invalid. 207 208**Solution** 209 210Make sure the **origin** value is valid. 211 212 213## 17100012 No Web Storage Origin 214 215**Error Message** 216 217Invalid web storage origin. 218 219**Description** 220 221This error code is reported when no web storage origin is available. 222 223**Possible Causes** 224 225The related JS database API is not used. 226 227**Solution** 228 2291. Check whether the JS database API is used. 230 2312. If the JS database API is used, find out the failure cause, for example, check whether **databaseAccess** is enabled. 232