Commit 7f1dbdc4cc09a05a5b835c6a25b6e958ad2964fd
1 parent
fea27e15
Exists in
master
and in
1 other branch
Exception callback no reachable
Showing
2 changed files
with
17 additions
and
8 deletions
Show diff stats
endpoints/video.js
| ... | ... | @@ -91,7 +91,7 @@ function init(req, res) { |
| 91 | 91 | }); |
| 92 | 92 | |
| 93 | 93 | requesting.on('error', function (e) { |
| 94 | - console.log("The callback URL isn't reachable"); | |
| 94 | + console.log("The callback URL can not be reachable"); | |
| 95 | 95 | }); |
| 96 | 96 | |
| 97 | 97 | requesting.write(data); |
| ... | ... | @@ -121,8 +121,8 @@ function init(req, res) { |
| 121 | 121 | res.setEncoding('utf8'); |
| 122 | 122 | }); |
| 123 | 123 | |
| 124 | - requesting.on('error', function (e) { | |
| 125 | - console.log("The callback URL isn't reachable"); | |
| 124 | + requesting.on('error', function (e) { | |
| 125 | + console.log("The callback URL can not be reachable"); | |
| 126 | 126 | }); |
| 127 | 127 | |
| 128 | 128 | requesting.write(data); |
| ... | ... | @@ -152,8 +152,8 @@ function init(req, res) { |
| 152 | 152 | res.setEncoding('utf8'); |
| 153 | 153 | }); |
| 154 | 154 | |
| 155 | - requesting.on('error', function (e) { | |
| 156 | - console.log("The callback URL isn't reachable"); | |
| 155 | + requesting.on('error', function (e) { | |
| 156 | + console.log("The callback URL can not be reachable"); | |
| 157 | 157 | }); |
| 158 | 158 | |
| 159 | 159 | requesting.write(data); | ... | ... |
endpoints/video_legenda.js
| ... | ... | @@ -101,6 +101,10 @@ function init(req, res) { |
| 101 | 101 | res.setEncoding('utf8'); |
| 102 | 102 | }); |
| 103 | 103 | |
| 104 | + requesting.on('error', function (e) { | |
| 105 | + console.log("The callback URL can not be reachable"); | |
| 106 | + }); | |
| 107 | + | |
| 104 | 108 | requesting.write(data); |
| 105 | 109 | requesting.end(); |
| 106 | 110 | |
| ... | ... | @@ -126,11 +130,12 @@ function init(req, res) { |
| 126 | 130 | |
| 127 | 131 | var requesting = http.request(options, function(res) { |
| 128 | 132 | res.setEncoding('utf8'); |
| 129 | - // res.on('data', function (chunk) { | |
| 130 | - // console.log("req.body: " + chunk); | |
| 131 | - // }); | |
| 132 | 133 | }); |
| 133 | 134 | |
| 135 | + requesting.on('error', function (e) { | |
| 136 | + console.log("The callback URL can not be reachable"); | |
| 137 | + }); | |
| 138 | + | |
| 134 | 139 | requesting.write(data); |
| 135 | 140 | requesting.end(); |
| 136 | 141 | |
| ... | ... | @@ -158,6 +163,10 @@ function init(req, res) { |
| 158 | 163 | res.setEncoding('utf8'); |
| 159 | 164 | }); |
| 160 | 165 | |
| 166 | + requesting.on('error', function (e) { | |
| 167 | + console.log("The callback URL can not be reachable"); | |
| 168 | + }); | |
| 169 | + | |
| 161 | 170 | requesting.write(data); |
| 162 | 171 | requesting.end(); |
| 163 | 172 | ... | ... |