收藏
回答

调用云函数的时候出现这个报错是什么意思?

调用的是:

 wx.cloud.init()
 wx.cloud.callFunction({
      name'getStore',
      config: {
        env: this.data.envId
      },
 }).then((resp) => {
      console.log("resp")
      console.log(resp)
      this.setData({
        haveGetOpenId: true,
        openId: resp.result.openid
      });
     wx.hideLoading();
 }).catch((e) => {
      console.log(e)
     wx.hideLoading();
 });


报错是:

Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID e5de1aca-884f-4b6b-a36b-25a094a59061, cloud function service error code -501000, error message FunctionName parameter could not be found.; at cloud.callFunction api; 

可是我有创建这个函数:

也部署在云服务器了


回答关注问题邀请回答
收藏

2 个回答

  • @
    @
    2022-12-21

    再猜一手,没同步云函数

    2022-12-21
    有用
    回复 2
    • 曹求胖🍖
      曹求胖🍖
      2022-12-22
      本地写完同步上去了 而且在云端也看见了能调用了
      2022-12-22
      回复
    • @
      @
      2022-12-23回复曹求胖🍖
      this.data.envId,data在哪
      2022-12-23
      回复
  • Zhao ZW
    Zhao ZW
    2022-12-20

    猜一手,环境错了

    2022-12-20
    有用
    回复 1
    • 曹求胖🍖
      曹求胖🍖
      2022-12-22
      只有一个云函数环境
      2022-12-22
      回复
登录 后发表内容