Netro API throught NODE-RED error: EAI_AGAIN

Jose Lao
Updated at 2022-08-13 23:04:43 UTC
Topic: Connected Home

There is any reason from the server side that I can get data using the API with the url using Chrome, but I get the message below trying to get the data using Node-Red?:

"RequestError: getaddrinfo EAI_AGAIN api.netrohome.com : https://api.netrohome.com/npa/v1/sensor_data.json?key=xxxxxxxxxxxx"

(xxxxxx is my the serial number)

I have to say that I successfully got the data using Node-Red with the first 5 or 10 petitions, but after that seems that I got a DNS block or permission denied using Node-Red, because if I use Chrome or Safari I'm able to get the data and the status OK.

Jose



View: 23693    Follow: 0   

2 Answers    Click the answer to view the full answer and comments