firebase - firebase函数部署崩溃的原因是什么
问题描述
通过 firebase deploy --only 功能进行部署时,我最近收到以下错误消息:
在控制台中:
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (90.26 KB) for uploading
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 6 function firestoreEmail(us-central1)...
i functions: updating Node.js 6 function apiMain(us-central1)...
✔ functions[apiMain(us-central1)]: Successful update operation.
⚠ functions[firestoreEmail(us-central1)]: Deployment error.
Error setting up the execution environment for your function. Please try deploying again after a few minutes.
Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
在日志中:
{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":13,"message":"Error setting up the execution environment for your function. Please try deploying again after a few minutes."},"authenticationInfo":{"principalEmail":"myemail@gmail.com"},"serviceName":"cloudfunctions.googleapis.com","methodName":"google.cloud.functions.v1.CloudFunctionsService.UpdateFunction","resourceName":"projects/myproject/locations/us-central1/functions/firestoreEmail"}
解决方案
推荐阅读
- java - Android 应用程序问题在空对象引用上注销“boolean com.google.firebase.firestore.DocumentSnapshot.exists()”
- python - 在 Python 中查找字符串并检索其旁边的文本
- r - 闪亮的部署问题,挂在:上传应用程序包:413154
- visual-studio - 获取最新版本 - TFS - 自动显示输出窗口
- r - 从 Rproj 中的列表创建数据框
- ocaml - Ocaml中字符串的简单解析
- javascript - 提高 Google Apps 脚本中 RSA 解密的性能
- android - 在 android.support.v4.app.Fragment.onActivityResult(int, int, android.content.Intent) 处获取 NullPointerException
- powerbi - 使用 dax 过滤视图上的多个列
- python - Keras 模型的每个(最后一层)输出的单独损失