Please paste the permalink to the page in question below:
If asking about a particular script please copy your script or relevant snippet below:
var assert = require('assert');
var options = {
url: "https://nms.si.enclab.att.net/nms/v1/base/tel:+15124230157/subscriptions",
body: '',
headers: {
'Content-Type': 'application/json'
}
};
$http.post(options, function(error, response) {
console.log(response.statusCode + " status code");
assert.ok(response.statusCode == 302, 'Good');
}
);
Please share your question/describe your issue below. Include any screenshots that may help us understand your question:
I am getting “TypeError: Cannot read property ‘statusCode’ of undefined” when the url is https based. If I simply change the url to http, then the script works as expected. Why would https make a difference here?