0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
225 stars 69 forks source link

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

Open deflao opened 1 year ago

deflao commented 1 year ago

Prerequisite

Cache

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 commented 1 year ago

IMG_4724

Here is the screenshot.

gurmeherchawla commented 1 year ago

Facing the same issue

deflao commented 1 year ago

Are you using TP-Link wifi router?

0x5e commented 1 year ago

~ » 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

deflao commented 1 year ago

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

gurmeherchawla commented 1 year ago

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

deflao commented 1 year ago

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