报错1:Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501000, error message Environment not found; at cloud.callFunction api;
报错2:Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501007, error message FUNCTION Resource Is Not Found; at cloud.callFunction api;
报错3:Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 1622388454609_0.11257106590226984_33598257, cloud function service error code -501000, error message 找不到对应的FunctionName.; at cloud.callFunction api;
以上三个错误不一定报哪个,调login接口不一定弹出哪个错误来。
为啥?因为你删除了默认云函数环境,当然调用云函数失败.创建一个新的,把新的环境id填进去