URL is responding when entered via Inject, or via Chrome browser.
Responding with "Forbidden" when entered via Function Node.
What is the difference ?
Cheers,
T
[
{
"id": "4b706968f2762ff3",
"type": "function",
"z": "c3eacf524719b6d5",
"name": "set URL",
"func": "var url = \"https://opendata.elia.be/api/explore/v2.1/catalog/datasets/ods087/records?select=*&where=region%20%3D%20%22Flanders%22%20and%20dayaheadconfidence10%20%2B%20dayaheadconfidence90%20%3E%200&order_by=datetime&limit=96&timezone=Europe%2FBrussels&refine=region%3A%22Flanders%22\";\nmsg.url = url;\nnode.warn(url);\nreturn msg;\n",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 280,
"y": 4040,
"wires": [
[
"4f2105828abfe760",
"fa586f505cb20735"
]
]
},
{
"id": "d1876e34b33f62e0",
"type": "http request",
"z": "c3eacf524719b6d5",
"name": "ELIA API V2.1",
"method": "GET",
"ret": "obj",
"paytoqs": "body",
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"x": 460,
"y": 3940,
"wires": [
[
"83123d33249176e5"
]
]
},
{
"id": "1c2288a47b4b5d7e",
"type": "inject",
"z": "c3eacf524719b6d5",
"name": "inject url",
"props": [
{
"p": "url",
"v": "https://opendata.elia.be/api/explore/v2.1/catalog/datasets/ods087/records?select=*&where=region%20%3D%20%22Flanders%22%20and%20dayaheadconfidence10%20%2B%20dayaheadconfidence90%20%3E%200&order_by=datetime&limit=96&timezone=Europe%2FBrussels&refine=region%3A%22Flanders%22",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 120,
"y": 3940,
"wires": [
[
"d1876e34b33f62e0",
"d95342606cf8f9ac"
]
]
},
{
"id": "83123d33249176e5",
"type": "debug",
"z": "c3eacf524719b6d5",
"name": "debug 237",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 630,
"y": 3940,
"wires": []
},
{
"id": "7638a54ef79ac673",
"type": "comment",
"z": "c3eacf524719b6d5",
"name": "https://opendata.elia.be/api/explore/v2.1/catalog/datasets/ods087/records?select=*&where=region%20%3D%20%22Flanders%22%20and%20dayaheadconfidence10%20%2B%20dayaheadconfidence90%20%3E%200&order_by=datetime&limit=96&timezone=Europe%2FBrussels&refine=region%3A%22Flanders%22",
"info": "",
"x": 1030,
"y": 3900,
"wires": []
},
{
"id": "4f2105828abfe760",
"type": "http request",
"z": "c3eacf524719b6d5",
"name": "ELIA API V2.1",
"method": "GET",
"ret": "obj",
"paytoqs": "body",
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"x": 460,
"y": 4040,
"wires": [
[
"277347341e19c218"
]
]
},
{
"id": "98d892b9c1441650",
"type": "inject",
"z": "c3eacf524719b6d5",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 4040,
"wires": [
[
"4b706968f2762ff3"
]
]
},
{
"id": "277347341e19c218",
"type": "debug",
"z": "c3eacf524719b6d5",
"name": "debug 238",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 630,
"y": 4040,
"wires": []
},
{
"id": "d95342606cf8f9ac",
"type": "debug",
"z": "c3eacf524719b6d5",
"name": "debug 239",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 310,
"y": 3980,
"wires": []
},
{
"id": "fa586f505cb20735",
"type": "debug",
"z": "c3eacf524719b6d5",
"name": "debug 240",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 470,
"y": 4100,
"wires": []
}
]