It have been a while since I have been working on my Node Red, everything has just been working. But now I have done some changes, and when I went to my backup-flow to send a backup to dropbox then it fails. I get FetchError: request to https://api.dropboxapi.com/oauth2/token?grant_type=********** failed, reason: getaddrinfo EAI_AGAIN api.dropboxapi.com
I have tried to do the autentication process again, several times. Even removed the old apps and started all over again, but with the same result. I am sure this has been discussed in here, but couldnt find it. So if anyone could help or show me where to look, I would be very happy.
If you google for EAI_AGAIN you will find that it means that there was a DNS failure looking up the domain api.dropbox.com, so you have some sort of networking failure.
On the machine running node red what do you see if you run, in a command window, ping api.dropbox.com? If that connects ok then it means that it is not a system wide problem. Are you running in Docker or with Home Assistant or similar?
I had the problem yesterday that I could not find my Node Red server, as it had static ip on my old router. After I had changed ip-range on my new router, I could access Node Red through my browser. In my new router I have assigned the MAC-adress on it to the same IP. But still I can not find the server in my routers client list. So I guess the problem is there.
I had to SSH into Node Red, I used Putty. When tracing IP-route I could see that my Node Red server still used the default ip-adress from my old router 10.0.0.138, so I had to use the command sudo ip route replace default via 10.0.0.1 dev eth0 Then everything is working again. Thanks for giving me the clue where to look.