楼主解决了吗?我也遇到了
云函数调用阿里的SDK一直连接超时RequestTimeoutError,请问怎么解决?const cloud = require('wx-server-sdk') cloud.init() const Core = require('@alicloud/pop-core'); var client = new Core({ accessKeyId: '', accessKeySecret: '', endpoint: 'https://dyplsapi.aliyuncs.com', apiVersion: '2017-05-25' }); var RegionId = "cn-hangzhou"; var PoolKey = ""; // 云函数入口函数 exports.main = async (event, context) => { var bindParams = { "RegionId": RegionId, "PhoneNoA": event.PhoneNoA, "Expiration": "2021-01-22 15:09", "PoolKey": PoolKey, "PhoneNoB": event.PhoneNoB, "IsRecordingEnabled":false } var res = await client.request('BindAxb', bindParams, {method: 'POST'}).then((result) => { console.log(result); return JSON.stringify(result); }, (ex) => { console.log(ex); }) return res; }
2021-03-17