homebridge-tuya-platform icon indicating copy to clipboard operation
homebridge-tuya-platform copied to clipboard

Error: getaddrinfo ENOTFOUND openapi.tuyaus.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107.26)

Open deflao opened this issue 1 year ago • 7 comments

Prerequisite

  • [X] Yes, I've read the readme completely.

Cache

  • [X] Yes, I've cleaned accessory cache and the issue still exists.

Version

1.7.0-beta.49

Device Infomation JSON File

No response

Device Control Mode

Standard Instruction

Logs

Error: getaddrinfo ENOTFOUND openapi.tuyaus.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107.26)

Other Infomations

The plugin has been great for about a month and last night it start to have this problem. And since it has the error, it keeps restarting homebridge service. I'm not sure if its tuya or the plugin issue. I tried to restart homebridge, restart the server and reboot my raspberry pi but still no luck.

deflao avatar Jul 18 '23 13:07 deflao

IMG_4724

Here is the screenshot.

deflao avatar Jul 18 '23 13:07 deflao

Facing the same issue

gurmeherchawla avatar Jul 31 '23 14:07 gurmeherchawla

Are you using TP-Link wifi router?

deflao avatar Jul 31 '23 14:07 deflao

~ » nslookup openapi.tuyaus.com Server: 240e:390:e56:8cc0::1 Address: 240e:390:e56:8cc0::1#53

Non-authoritative answer: openapi.tuyaus.com canonical name = us-kong-44399fa934a1be74.elb.us-west-2.amazonaws.com. Name: us-kong-44399fa934a1be74.elb.us-west-2.amazonaws.com Address: 54.188.51.105 Name: us-kong-44399fa934a1be74.elb.us-west-2.amazonaws.com Address: 44.231.179.25 Name: us-kong-44399fa934a1be74.elb.us-west-2.amazonaws.com Address: 54.71.119.195

that's dns issue, this is my resolve result, if it always happend you can add this ip to /etc/hosts

0x5e avatar Jul 31 '23 15:07 0x5e

I tried to mess with changing the dns server, multiple different ones, it works but the delay is super long, approximately 10 seconds per actions. I originally have TP-Link AX3000 and I swapped it out with another TP-Link router just to see if it works and I did. But since the router that I swapped doesn’t have a strong enough CPU and RAM so my IoT constantly lost their connections. Now I’m having an ASUS router and it’s been fine since then. Again, adjusting the DNS will work but not as fast, if not very slow

deflao avatar Jul 31 '23 16:07 deflao

@deflao I am using TP Link Deco XE75. I can't switch routers. What do I do?

gurmeherchawla avatar Jul 31 '23 17:07 gurmeherchawla

I followed the instructions from the link: https://pimylifeup.com/raspberry-pi-dns-settings/

deflao avatar Aug 01 '23 02:08 deflao