Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error deploying cloud functions with region europe-west2 (London) #1382

Closed
BarNiedzielski opened this issue Jun 8, 2019 · 2 comments
Closed

Comments

@BarNiedzielski
Copy link

[REQUIRED] Environment info

firebase-tools: 6.11.0

Platform: Windows

[REQUIRED] Test case

I'm trying to deploy functions with selected region europe-west2.
According to documentation it should work.
const functions = require('firebase-functions'); exports.fun= functions.region('europe-west2').https.onRequest((res) => res.ok());

[REQUIRED] Steps to reproduce

firebase deploy --only functions

[REQUIRED] Expected behavior

Function should deploy.

[REQUIRED] Actual behavior

I'm getting error:

Error: The only valid regions are 'us-central1', 'us-east1', 'europe-west1', and 'asia-northeast1'

@thechenky
Copy link
Contributor

thechenky commented Jun 8, 2019

@BarNiedzielski you need to update your firebase-functions SDK. Can you try that and see if it helps?

@thechenky thechenky self-assigned this Jun 8, 2019
@thechenky thechenky added Needs: Author Feedback Issues awaiting author feedback api: functions labels Jun 9, 2019
@BarNiedzielski
Copy link
Author

You're right. I have outdated SDK. After update everything works. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants