-
Autor
There seems to be something wrong with latest firmware versions (tested on 1.6.1 and 1.6.2) while trying to pass headers in an HTTP GET Request.
Here is the request part of the script:
Code
let h = { "Authorization": CONFIG.token };
Shelly.call(
STRINGS.httpRequest,
{
method: STRINGS.httpGet,
headers: h,
url: deviceApiUrl,
},
function (res, errorCode, errorMessage, ud) {
print(errorCode + " " + errorMessage);
if(errorCode == 0) {
print(res.body);
let r = JSON.parse(res.body);
let state = r.attributes.isOn;
print(state);
}
}, null);
Alles anzeigen
While on 1.5.1 I get an error message because the header is too long, on 1.6.1 and 1.6.2, this same script returns:
Any help appreciated. I am trying to interface directly with a Dirigera Zigbee hub and it uses a very large authentication token in the requests. I was under the impression that the length of each header was bumped to something like 1K... What am i missing here?
Thanks!