云函数调用出问题了,哪位大佬帮看一下
发布于 5 年前 作者 juanzhang 9697 次浏览 来自 问答
wx.cloud.callFunction({
      env: 'shop001',
      name: 'getdata',
      data: {
        action: 'getOne',
      },
      success: res => {
        console.warn('[云函数] [openapi] getOne.send 调用成功:', res)
      },
      fail: err => {
        console.error('[云函数] [openapi] templateMessage.send 调用失败:', err)
      }
    })

云函数调用出问题了

VM48138:1 [云函数] [openapi] templateMessage.send 调用失败: Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail cloud function service error code -504002, error message Function not found: [getdata]; at cloud.callFunction api;

截图

3 回复

怎么配置访问指定的云环境的里的函数

请问这个问题解决了吗?

我这边 上传部署(云端下载依赖)  报错 Error: errCode: -1 unknown error | errMsg: collection.get:fail Error: missing authoration key, redeploy the function; at collection.get api;

只要操作数据库,就这样

本地调试没问题,请问这是怎么回事

getdata这个云函数上传部署到你指定的环境ID了吗?

回到顶部