Error Codes

Last Updated on : 2024-04-03 16:25:53download

Error code Description
101 Network error.
102 Failed to escape JSON data.
103 Failed to access the network due to a networking error.
104 Incorrect system time on the phone causes the SSL certificate to expire.
105 Session information is required for login.
106 An error has occurred while synchronizing input/output data.
1001 A network error has occurred during pairing.
1002 Failed to bind with the gateway during pairing.
1004 Failed to get the token during pairing.
1005 Failed to detect the online status of the device during pairing.
1006 Pairing timeout.
1007 A pairing error has occurred.
1100 Incorrect mobile phone.
1101 Incorrect verification code.
1102 An update error has occurred.
10201 The device is disconnected from the LAN.
10202 The device is disconnected from the cloud.
10203 The device is offline.
11001 The command format is invalid.
11002 The device has been removed.
11004 Incorrect signature.
11005 Failed to send the command.
11009 The data sent to the device is empty.
12001 Failed to parse the data.
12002 The signature does not match.
12003 The data has expired.
12004 The protocol version number does not exist.

Network error codes

Error code Error message Cause
50500 Other errors. Unknown error.
50502 javax.net.ssl.sslhandshakeexception
  • The incorrect phone system time causes the certificate to expire.
  • The network certificate validation on the phone causes all apps to fail to access the internet.
  • There are issues with load balancing for cloud certificates, causing some users’ phones to fail to access the certificate.
  • Cloud certificate expiration can cause the error 50502.
  • The phone lacks the Tuya-specific CA root certificate.
  • There are issues with the intermediate certificate in the server certificate chain.
50501 Unavailable network. The phone’s Wi-Fi or mobile network is not turned on, causing network scanning to fail.
50408 timeout The network request timed out.
50504 unable to resolve host No internet access.
50503 read timed out The read request timed out.
50505 failed to connect to… No network is available.
50506 no route to host
50507 connect timed out
50508 ssl handshake timed out
50509 connection closed by peer The cloud rejected the request.
50510 stream was reset: protocol_error
50511 canceled The app locally canceled the network request.
50512 502 The gateway does not work due to cloud problems.
50513 503 An HTTP status code to indicate that the server is not ready to accept requests.
50514 json error An error has occurred while parsing JSON data.
50515 Hostname …not verified
50516 certificate pinning failure