无法更改 firebase pubsub 触发器的位置

Unable to change location for firebase pubsub trigger

我在 asia-northeast1 中有一个 App Engine 应用程序,但我无法为 pubsub 触发器指定区域。

这个有效:

functions.region("asia-northeast1").https.onRequest(async (req, res)

这不起作用:

functions.region("asia-northeast1").pubsub.schedule('* 6-23 * * *')

出现以下错误消息:错误:HTTP 错误:400,位置必须等于 asia-northeast1,因为与此项目关联的 App Engine 应用位于 asia-northeast1

有没有人有过让 pubsub 触发器在与默认 us-central1 不同的区域工作的经验?提前谢谢你

这是 Firebase CLI 版本 7.1.0 中的 known bug。暂时降级到以前的版本 (7.0.2)。这将得到解决。

当您在使用 Firebase CLI 时遇到意外问题,您应该 contact Firebase support directly,并考虑在 GitHub 中提交错误报告。

此处存在相同问题:我已将 Firebase 项目设置 中的设置 Google Cloud Platform (GCP) resource location 解决为 未定义eur3 (europe-west)(我的 AppEngine 资源在 europe-west1 中)