diff --git a/endpoints/video.js b/endpoints/video.js index 592de2c..b1df285 100644 --- a/endpoints/video.js +++ b/endpoints/video.js @@ -88,6 +88,9 @@ function init(req, res) { var requesting = http.request(options, function(res) { res.setEncoding('utf8'); + res.on('error', function (e) { + console.log("The callback URL isn't reachable"); + }); }); requesting.write(data); @@ -115,9 +118,9 @@ function init(req, res) { var requesting = http.request(options, function(res) { res.setEncoding('utf8'); - // res.on('data', function (chunk) { - // console.log("req.body: " + chunk); - // }); + res.on('error', function (e) { + console.log("The callback URL isn't reachable"); + }); }); requesting.write(data); @@ -145,6 +148,9 @@ function init(req, res) { var requesting = http.request(options, function(res) { res.setEncoding('utf8'); + res.on('error', function (e) { + console.log("The callback URL isn't reachable"); + }); }); requesting.write(data); -- libgit2 0.21.2