Unhandled Rejection at: Promise {<rejected>: Error: errCode: -501007 invalid parameters | errMsg: subscribeMessage.send:fail Invalid wxCloudApiT…} reason: Error: errCode: -501007 invalid parameters | errMsg: subscribeMessage.send:fail Invalid wxCloudApiToken
at callGeneralOpenAPI (/Users/i342354/Desktop/repository/vue/wechat-cloud/cloudfunctions/sendTemplateMessage/node_modules/wx-server-sdk/index.js:425:19)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
code: "INVALID_PARAM"
message: "Invalid wxCloudApiToken"
requestId: "179cfd78af0_4"
我们也是这个错,用trigger触发的,本地没问题,云函数发布了就报错。
Unhandled Rejection at: Promise {<rejected>: Error: errCode: -501007 invalid parameters | errMsg: subscribeMessage.send:fail Invalid wxCloudApiT…} reason: Error: errCode: -501007 invalid parameters | errMsg: subscribeMessage.send:fail Invalid wxCloudApiToken
你好,可先参考往期开发者提供的解决方案:https://developers.weixin.qq.com/community/search?query=fail%2520Invalid%2520wxCloudApiToken&page=1&block=0&random=1622710367050&type=1