Error: getaddrinfo ENOTFOUND openapi.tuyaundefined.com
See original GitHub issueDescribe 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 `
sudo tuya-cli wizard ? The API key from tuya.com: xxxx ? The API secret from tuya.com xxxx ? Provide a ‘virtual ID’ of a device currently registered in the app: xxxx node:internal/process/promises:246 triggerUncaughtException(err, true /* fromPromise */); ^ <ref *1> Error: getaddrinfo ENOTFOUND openapi.tuyaundefined.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) { errno: -3008, code: ‘ENOTFOUND’, syscall: ‘getaddrinfo’, hostname: ‘openapi.tuyaundefined.com’, config: { url: ‘https://openapi.tuyaundefined.com/v1.0/token?grant_type=1’, method: ‘get’, headers: { Accept: ‘application/json, text/plain, /’, t: ‘1625574613464’, client_id: ‘uwh3v8f4aqarkxdp5q2s’, sign_method: ‘HMAC-SHA256’, sign: ‘04AD04EECB004ED5DB6C929A666A28F649C14C9F6CCF0557120B4DF62F82AA90’, access_token: ‘’, … `
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):
- OS: macOS
- OS Version 11.4 (20F71)
- Node Version v16.4.2
Additional context Maybe it somehow connected to
To better secure your cloud development, Tuya will upgrade the signature algorithm. Projects created after June 30, 2021 are subject to signature verification with the new algorithm. View details. ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
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 fine, thank you for the fast fix!