I am new to node red (so links are fudged to htttp due to new user limits) and I expected a very simple http request would just work. This is the request: "htttps://api.forecast.solar/estimate/-41.51/173.96/25/170/3.84". It does work as expected in Firefox but the very simple flow fails quickly with the message "no response from server" from the http-request node and the following error message captured at the debug node:
{"_msgid":"db9f3f80dae3053e","payload":"RequestError : htttps://api.forecast.solar/estimate/-41.51/173.96/25/170/3.84","topic":"","statusCode":"ETIMEDOUT"}
The browser and node red are running on the same platform, a Raspberry Pi 4 running Ubuntu 22.04. Version info:
Node-RED version: v4.0.9
Node.js version: v20.19.0
Linux 5.15.0-1070-raspi arm64 LE
I think I must be missing something very simple about node red or nodejs and networking but have so far had no luck searching for a solution.
Here is a screenshot and the JSON for the flow:
[
{
"id": "0df4284c28cd9b46",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "70abc65628136c33",
"type": "inject",
"z": "0df4284c28cd9b46",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 140,
"y": 160,
"wires": [
[
"ed895fa7f3f3d1bf"
]
]
},
{
"id": "ed895fa7f3f3d1bf",
"type": "http request",
"z": "0df4284c28cd9b46",
"name": "",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.forecast.solar/estimate/-41.51/173.96/25/170/3.84",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"x": 350,
"y": 160,
"wires": [
[
"fc5f9282a54b38a5"
]
]
},
{
"id": "fc5f9282a54b38a5",
"type": "debug",
"z": "0df4284c28cd9b46",
"name": "debug 3",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 160,
"wires": []
}
]