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:[email protected]] On Behalf Of
[email protected]
Sent: Wednesday, January 24, 2018 7:48 AM
To: 'Community support for GenieACS users' <[email protected]>
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?

_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to