f***@163.com
f***@163.com
  • 发布:2024-02-04 00:10
  • 更新:2024-02-18 11:16
  • 阅读:73

【报Bug】errMsg: 'Connect timeout for 300000ms, POST https://api-inner.next.bspapp.com/server -2

分类:uniCloud

产品分类: uniCloud/App

示例代码:

执行的代码段类似如下:

// 发送订阅消息  
let res = await uniSubscribemsg.sendSubscribeMessage({  
    touser: msg.openid,  
    template_id: msg.template_id,  
    page: "pages/index/index",  
    miniprogram_state: "trial",  
    lang: "zh_CN",  
    data: {  
        thing1: {  
            value: "还差0人即可免运费,赶快行动吧!"  
        },  
        thing2: {  
            value: "分享免运费"  
        },  
        thing3: {  
            value: "分享达2个点赞即可免运费"  
        }  
    }  
})

操作步骤:

在我的云函数执行就会报上面的错误

预期结果:

不报错

实际结果:

请求超时

bug描述:

在云对象中执行了一段发送微信订阅消息的代码,报了如下的请求超时错误信息:

sendSubscribeMessage ex:  { Error: Connect timeout for 300000ms, POST https://api-inner.next.bspapp.com/server -2 (connected: false, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 0)  
headers: {}  
    at L.e.then.catch.e (/tmp/function/@dcloudio/serverless/lib/aliyun/uni-cloud.js:1:1611)  
    at <anonymous>  
  errMsg: 'Connect timeout for 300000ms, POST https://api-inner.next.bspapp.com/server -2 (connected: false, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 0)\nheaders: {}',  
  errCode: undefined,  
  code: undefined,  
  errSubject: undefined,  
  forceReturn: false,  
  cause: undefined }
2024-02-04 00:10 负责人:无 分享
已邀请:
DCloud_uniCloud_VK

DCloud_uniCloud_VK

循环执行的吗? 就是超时了

要回复问题请先登录注册