We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81c4a47 commit 0d66793Copy full SHA for 0d66793
metadata/SSCWeb/SSCWeb2HAPI.js
@@ -40,9 +40,9 @@ SSCWeb2HAPI(function (err, catalog) {
40
function getUrlo(cb) {
41
// Fetches urlo and writes it to cfile
42
console.error("Getting " + urlo)
43
- request({uri: urlo, strictSSL: false},
+ request({uri: urlo, strictSSL: false, "timeout": 10000},
44
function (error, response, body) {
45
- if (error) {
+ if (error || response.statusCode !== 200) {
46
console.error(error);
47
if (fs.existsSync(cfile)) {
48
console.error("Could not get " + urlo + ". Returning cached metadata.")
@@ -145,9 +145,8 @@ function makeHAPI(jsonraw, cb) {
145
catalog[i]["info"]["parameters"][j]["type"] = "string";
146
catalog[i]["info"]["parameters"][j]["length"] = len;
147
}
148
-
+
149
150
151
152
var Time = {
153
"name": "Time",
0 commit comments