Unable to change location for firebase pubsub trigger

◇◆丶佛笑我妖孽 提交于 2019-12-02 17:38:21

问题


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

This works:

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

This does not work:

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

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

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


回答1:


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.

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



来源:https://stackoverflow.com/questions/57048532/unable-to-change-location-for-firebase-pubsub-trigger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!