【发布时间】:2021-01-20 21:35:18
【问题描述】:
所以我有一个链接到 Firebase 项目的 GCP 项目(所以我可以使用 Cloud Firestore 而不是 Datastore)。
我编写了一个云函数(在 Python 中),并在尝试通过以下方式部署它时:
$ gcloud functions deploy hello1 --runtime python38 --trigger-http --allow-unauthenticated --region=us-central1
它需要永远然后给出这个错误:
错误:(gcloud.functions.deploy) OperationError: code=13, message=Failed to initialize region (action ID: c6a9e29e404f3d1e)
如果我在没有 Firestore 的任何其他项目中部署相同的功能,它部署得很好...
这是一个限制吗?还是我需要设置什么?
【问题讨论】:
-
我还尝试使用 $ gcloud config set functions/region us-central1 设置区域并且还运行不带 --region arg 的命令
-
Cloud Functions 现在需要项目中的结算帐户。您能否确认您的结算帐户仍然有效?
标签: google-cloud-platform google-cloud-firestore google-cloud-functions gcloud