cli
cli copied to clipboard
Version 1.15.0 Thows Unhandled 'error' event every 2-3 times of use
Error thrown " throw er; // Unhandled 'error' event" Retry, ditto, Retry again.....then works as it should.
example: (issue happens with get and set)
tuya-cli get --id [myid]--key [mykey] --ip [myip] --protocol-version 3.3 -a events.js:291 throw er; // Unhandled 'error' event ^
Error: Error from socket
at Socket.
If you're experiencing intermittent errors, it's very likely something else is trying to control your device / get the status at the same time. Please double check the app is completely closed on your phone and there are no other processes attempting to connect to it.