question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: getaddrinfo ENOTFOUND openapi.tuyaundefined.com

See original GitHub issue

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 `

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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
codethewebcommented, Jul 7, 2021

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.

0reactions
DmitryMaksakovcommented, Jul 7, 2021

Works fine, thank you for the fast fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: getaddrinfo ENOTFOUND in nodejs for get call
getaddrinfo ENOTFOUND means client was not able to connect to given address. Please try specifying host without http: var optionsget = { host...
Read more >
http.get returns "getaddrinfo ENOTFOUND" error #5436 - GitHub
Hi all, I'm trying to fix following problem since five days. When I'm doing a http.get("http://url/", cb); or http.get(options, cb); ...
Read more >
Node.js Error Message “getaddrinfo ENOTFOUND localhost ...
Today I want to go over a quick fix to an error that had me very confused when I first started my program...
Read more >
Encountering Error: getaddrinfo ENOTFOUND undefine...
Hello ArcGIS Monitor Team, We have configured the Excel Report add-on from ArcGIS Monitor gallery with our ArcGIS Monitor 10.8.1 and we are ......
Read more >
Node applications on App Service Linux and getaddrinfo ...
ENOTFOUND is a DNS lookup failure thrown back by Node specifically - doc, meaning - this is something Node has created and is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found