求大佬解答
为什么 云函数 request 请求超时 不跳出?求大佬指点迷津query: function(queryObj) { return new Promise(function(resolve, reject) { request({ url: obj.url, method: 'POST', json: true, body: { query: queryObj.query, variables: queryObj.variables }, headers: queryObj.header || header, timeout: 5000 }).then(function (res) { //resolve(res) console.log(timeout) console.log('进入结果判断') console.log(res) responseHandler(resolve, reject, res,obj.errorHandler) }).catch(function (err) { console.log('请求失败') reject(err) }); }); },
2020-12-03