Authored by weiqingting

跟踪线上问题

... ... @@ -102,16 +102,16 @@ function __requestApi(config, apiOpt, req, callback){
if(response && response.statusCode === 200){
var obj=JSON.parse(body)
if(!(typeof obj=="object")){
_err_.message="Error[json parse]:"+body;
_err_.message="Error[json parse@"+apiOpt.title+"]:"+body;
return callback(_err_,null);
}
}else{
_err_.message="Error[response]:"+response;
_err_.message="Error[response@"+apiOpt.title+"]:"+response.statusCode;
return callback(_err_,null);
}
}catch(err){
console.info("Request 内容转化JSON错误");
console.info("Request 内容转化JSON错误@"+apiOpt.title+"");
console.info(response);
console.error(err);
return callback(err,null);
... ...
... ... @@ -102,16 +102,16 @@ function __requestApi(config, apiOpt, req, callback){
if(response && response.statusCode === 200){
var obj=JSON.parse(body)
if(!(typeof obj=="object")){
_err_.message="Error[json parse]:"+body;
_err_.message="Error[json parse@"+apiOpt.title+"]:"+body;
return callback(_err_,null);
}
}else{
_err_.message="Error[response]:"+response;
_err_.message="Error[response@"+apiOpt.title+"]:"+response.statusCode;
return callback(_err_,null);
}
}catch(err){
console.info("Request 内容转化JSON错误");
console.info("Request 内容转化JSON错误@"+apiOpt.title+"");
console.info(response);
console.error(err);
return callback(err,null);
... ...