[云函数] [login] 调用失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callF

login出错

 __ 云函数] [login] 调用失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; 
at new t (WAService.js:22)
at o (WAService.js:22)
at Object.i [as returnAsFinalCloudSDKError] (WAService.js:22)
at Function.success (WAService.js:21)
at Object.success (WAService.js:4)
at L. (WAService.js:7)
at L.emit (WAService.js:8)
at Function. (WAService.js:12)
at WAService.js:6
at n (appservice?t=1564365122173:1395  __

解决方法

1.找到环境ID,copy
[云函数] [login] 调用失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callF_第1张图片
2打开app.js改里面的 env:‘'my-env-id",改成自己的环境ID
[云函数] [login] 调用失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callF_第2张图片
3.找到login文件夹右键–》上传并部署云端安装依赖
[云函数] [login] 调用失败 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callF_第3张图片

你可能感兴趣的:(微信小程序)