无法更改 firebase pubsub 触发器的位置 [英] Unable to change location for firebase pubsub trigger

查看:21
本文介绍了无法更改 firebase pubsub 触发器的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have an App Engine app in asia-northeast1, but i could not specify the region for pubsub trigger.

这行得通:

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

With the following erroor message: Error: HTTP Error: 400, Location must equal asia-northeast1 because the App Engine app that is associated with this project is located in asia-northeast1

有没有人有任何经验让 pubsub 触发器在默认的 us-central1 之外的不同区域工作?提前谢谢您

Does anyone have any experience getting pubsub trigger to work in a different region than the default us-central1? Thank you in advance

推荐答案

这是一个 Firebase CLI 7.1.0 版中的已知错误.暂时降级到以前的版本 (7.0.2).这将得到解决.

This is a known bug in the Firebase CLI version 7.1.0. Downgrade to a prior version for now (7.0.2). This will be fixed.

当您遇到 Firebase CLI 的意外问题时,您应该直接联系 Firebase 支持,并考虑在 GitHub 中提交错误报告.

When you encounter unexpected problems with the Firebase CLI, you should contact Firebase support directly, and also consider filing a bug report in GitHub.

这篇关于无法更改 firebase pubsub 触发器的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆