获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
M2
send subscribeMessage.send 报errCode: -501007?订阅消息 /subscribeMessage.send ,采用 云调用方式。openapi.subscribeMessage.send j技术场景:在node环境里,调起云函数,去发送消息给已经订阅了的用户,报501007错误。 详见代码: node-test.js const tcb = require('@cloudbase/node-sdk'); const app = tcb.init({ secretId: "*****", secretKey: "*****", env: "*****" }); sendmessagenw() async function sendmessagenw() { const res = await app.callFunction({ name: 'send-message', }) console.log(res) } x下图云函数内容,就直接抄官方的demo [图片] 运行node文件后,报501007错误,是不是在node里调起 发订阅消息给用,只能采用 http方式?
2021-08-28