收藏
回答

云函数一直显示调用失败为什么?

调用云函数失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 558dd066-cf21-4378-ba05-89785a92c754, cloud function service error code -504002, error message Error: collection.get:fail -501001 resource system error. Environment not found, there is no default environment exists, please explicitly specify the environment

    at Object.toSDKError (:19164/var/user/node_modules/wx-server-sdk/index.js:8094)

    at Object.checkError (:19164/var/user/node_modules/wx-server-sdk/index.js:1422)

    at :19164/var/user/node_modules/wx-server-sdk/index.js:1489

    at processTicksAndRejections (:19164/appservice/internal/process/task_queues.js:97); at cloud.callFunction api; 

    at new t (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:17)

    at u (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:17)

    at l (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:17)

    at Function.success (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:17)

    at d (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:2)

    at WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:2

    at f (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:26)

    at Function.<anonymous> (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:26)

    at d (WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:2)

    at WASubContext.js?t=wechat&s=1652585685072&v=2.14.1:2

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

1 个回答

  • 老张
    老张
    2022-05-15

    Environment not found, there is no default environment exists, please explicitly specify the environment

    2022-05-15
    有用 1
    回复 2
    • 永不言弃
      永不言弃
      发表于移动端
      2022-05-15
      但是环境都有,就是出不来
      2022-05-15
      回复
    • 老张
      老张
      2022-05-15回复永不言弃
      你提供的信息只能得出这个结论。还想让人帮你分析更多其他原因,先学会提问,自己想想该提供更多的哪些信息吧。
      2022-05-15
      1
      回复
登录 后发表内容