TypeError: Cannot read property 'Device' of null
eric at aisling-technologies.com
eric at aisling-technologies.com
Wed Jan 24 07:58:13 EST 2018
Here is the nodejs native code exported from Postman
var http = require("http");
var options = {
"method": "POST",
"hostname": [
"###",
"###",
"###",
"###"
],
"port": "7557",
"path": [
"devices",
"1C497B-B2338%2D168-GMC170828000679",
"tasks"
],
"headers": {
"Cache-Control": "no-cache",
"Postman-Token": "9b5799fc-773c-2e86-b660-af7374e55ea3"
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write("{\"name\":\"refreshObject\",
\"objectName\":\"InternetGatewayDevice.SystemConfig.Status.ModemStatus.RSRP\
"}");
req.end();
From: Users [mailto:users-bounces at lists.genieacs.com] On Behalf Of
eric at aisling-technologies.com
Sent: Wednesday, January 24, 2018 7:48 AM
To: 'Community support for GenieACS users' <users at lists.genieacs.com>
Subject: TypeError: Cannot read property 'Device' of null
I am using Google's Postman to test API calls. I am attempting to do a
connection request where I can refresh a parameter, and eventually graph it
My connection request.
http://###.###.###.###:7557/devices/1C497B-B2338%2D168-GMC170828000679/tasks
?connection_request
My query.
{"name":"refreshObject",
"objectName":"InternetGatewayDevice.SystemConfig.Status.ModemStatus.RSRP"}
When I run it I get the following error.
TypeError: Cannot read property 'Device' of null
Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180124/487ca945/attachment.html>
More information about the Users
mailing list