gpt4 book ai didi

google-app-engine - Firebase Cloud Functions 部署错误

转载 作者:太空宇宙 更新时间:2023-11-03 15:23:56 24 4
gpt4 key购买 nike

我正在尝试从 firebase CLI 部署我的项目,但我的功能存在问题。这很奇怪,因为四个星期前我没有遇到任何问题。我没有更改任何我的 firebase 云功能设置。当我尝试运行
firebase deploy
firebase deploy --only functions .

我得到同样的错误:
There was an issue deploying your functions. Verify that your project has a Google App Engine instance setup at <a href="https://console.cloud.google.com/appengine" rel="noreferrer noopener nofollow">https://console.cloud.google.com/appengine</a> and try again. If this issue persists, please contact support.



Error: HTTP Error: 500, Internal error encountered.


我的云功能在无需设置 Google App Engine 之前运行良好,而且我似乎无法在文档中找到任何提及需要 Google App Engine 的内容。

最佳答案

对我来说,这是云资源位置的问题。

因此只需将 firestore 添加到您的项目并选择一个位置(即欧洲西部)。

解释:

firebase init 之后我得到一个错误:

Error: Cloud resource location is not set for this project but the operation you are attempting to perform in Cloud Firestore requires it. Please see this documentation for more details: https://firebase.google.com/docs/projects/locations

所以转到https://console.firebase.google.com/project ,选择您的项目,然后单击数据库并添加 firestore(如果您愿意,也可以添加实时数据库)。这也将允许您上传函数。

关于google-app-engine - Firebase Cloud Functions 部署错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48156374/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com