Closed DmitryMaksakov closed 3 years ago
same issue here.
same issue on Ubuntu
I am unable to reproduce this.
The wizard has been updated to use the latest signing algorithm.
Try clearing the configuration for @tuyapi/cli at ~/.config/configstore/@tuyapi/cli.json
on macOS (make sure to display it beforehand in case it turns out to be relevant).
For what its worth, I'm using Ubuntu 20.04 LTS and did a fresh instap through npm i @tuyapi/cli -g
If you spin up a new VM with Ubuntu LTS it is reproduceable for sure, just validated it myself.
root@test123:/home/test123# tuya-cli wizard ? The API key from tuya.com: xxx ? The API secret from tuya.com xxx ? Provide a 'virtual ID' of a device currently registered in the app: xxx (node:56175) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND openapi.tuyaundefined.com openapi.tuyaundefined.com:443 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26) (node:56175) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3) (node:56175) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Thanks for the suggestion.
I was able to reproduce. I believe this should be fixed in v1.17.1 of @tuyapi/cli, please upgrade and let me know.
Works perfectly now. Thanks a lot!
Works fine, thank you for the fast fix!
Describe the bug While trying to get device information, I am getting the
Error: getaddrinfo ENOTFOUND openapi.tuyaundefined.com
.For some reason the tool tries to access openapi.tuyaundefined.com
To Reproduce `
Expected behavior The tool should request correct address openapi.tuya<?>.com
Debug Output The same as in To Reproduce section
Desktop (please complete the following information):
Additional context Maybe it somehow connected to