慕沐3057435
2020-07-22 12:59
Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID a501e405-cbd7-11ea-974f-5254003f7a63, cloud function service error code -504002, error message user’s issue failed:kLoadFuncFailed; at cloud.callFunction api;
at new u (VM15 WAService.js:2)
at d (VM15 WAService.js:2)
at f (VM15 WAService.js:2)
at Function.success (VM15 WAService.js:2)
at h (VM15 WAService.js:2)
at VM15 WAService.js:2
at k (VM15 WAService.js:2)
at Function.<anonymous> (VM15 WAService.js:2)
at h (VM15 WAService.js:2)
at VM15 WAService.js:2
从错误码看是云函数执行失败。
1、在云函数端设置云环境id:
cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV })
2、请仔细对比课程中的代码,看下哪里和课程代码不一样,是不是哪里马虎敲错了
轻松入门微信小程序与云开发
64548 学习 · 1742 问题
相似问题