Hello I am hoping that someone here can help me. Not sure why Node-Red is seeming to have such a hard time with such a simple process. Clearly has to be something I am over-looking.
Im pulling data from our ticketing system and from powershell it works without an issue:
However in NodeRed
[
{
"id": "92d4157e9a6f0336",
"type": "debug",
"z": "a4ae3de1a01e4463",
"name": "debug 2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 940,
"y": 240,
"wires": []
},
{
"id": "5cc51b6ece33e3e1",
"type": "function",
"z": "a4ae3de1a01e4463",
"name": "function 1",
"func": "msg.headers = {\n 'Authorization': \"Basic XXXXXXX\"\n ,'Content-Type': 'application/json'\n}\nmsg.url = 'https://company.freshservice.com/api/v2/analytics/export?id=XXXXXX'\nmsg.method = 'GET'\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 560,
"y": 300,
"wires": [
[
"ec0d027d462ed1cf",
"92d4157e9a6f0336"
]
]
},
{
"id": "ec0d027d462ed1cf",
"type": "http request",
"z": "a4ae3de1a01e4463",
"name": "",
"method": "use",
"ret": "obj",
"paytoqs": "ignore",
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": true,
"authType": "",
"senderr": false,
"headers": [],
"x": 750,
"y": 300,
"wires": [
[
"92d4157e9a6f0336"
]
]
},
{
"id": "a154d98fb671c800",
"type": "inject",
"z": "a4ae3de1a01e4463",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "str",
"x": 390,
"y": 300,
"wires": [
[
"5cc51b6ece33e3e1"
]
]
}
]