// 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init() // 云函数入口函数 exports.main = async (event, context) => { try { const result = await cloud.openapi.security.msgSecCheck({ content: event.text }) // { errCode: 0, errMsg: 'openapi.templateMessage.send:ok' } return result } catch (err) { // 错误处理 // err.errCode !== 0 throw err } } |
Uncaught (in promise) Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 1d75276b-aab7-11e9-aad2-525400e8849e, cloud function service error code -504002, error message errCode: -4 | errMsg: system error: error code: -4; at cloud.callFunction api;
at new u (WAService.js:1)
at d (WAService.js:1)
at Object.t.returnAsFinalCloudSDKError (WAService.js:1)
at Function.success (WAService.js:1)
at WAService.js:1
at E (WAService.js:1)
at i.<anonymous> (WAService.js:1)
at i.emit (WAService.js:1)
at Ka (WAService.js:1)
at WAService.js:1
周六系统段时间故障,重试一下试试